Skip to content

Delegate overrideAppendCondition in the event store transaction wrapper and release 5.4.2 - #200

Merged
CodeDrivenMitch merged 2 commits into
mainfrom
fix/override-append-condition-5.4.2
Nov 9, 2026
Merged

CodeDrivenMitch merged 2 commits into
mainfrom
fix/override-append-condition-5.4.2

Conversation

@stefanmirkovic

Copy link
Copy Markdown
Contributor

AxoniqPlatformEventStore wraps the EventStoreTransaction but did not forward overrideAppendCondition(). The interface default throws UnsupportedOperationException, so any application that overrides the append condition fails as soon as the Platform client is on the classpath. Workflows do this on every step, which blocks workflow execution entirely (reported by a customer on AF 5.4.1).

The fix is taken from #196 so it can ship without waiting for the workflow telemetry feature.

Changes

  • AxoniqPlatformEventStoreTransaction delegates overrideAppendCondition() to the wrapped transaction.
  • AxoniqPlatformEventStoreTest checks that the modifier reaches the underlying transaction.
  • Version bumped to 5.4.2, so merging this releases to Maven Central.

overrideAppendCondition() already exists in AF 5.3.2, so no framework bump is needed.

Other wrappers

I checked every delegating wrapper in the client against the AF 5.4.1 interfaces. No other default method throws. A few are not forwarded, but they lose information rather than fail:

  • AxoniqPlatformQueryBus does not forward the *AndCount methods (emitUpdateAndCount and the two completeSubscriptions*AndCount). Updates still reach subscribers, but the count comes back as OptionalInt.empty().
  • The handler member wrappers do not forward priority(), canHandleType() and attribute(), unlike AF's WrappedMessageHandlingMember.

I will look at those in a separate PR.

After merge, main needs to go back to 5.4.3-SNAPSHOT.

The interface default throws UnsupportedOperationException, so workflows,
which override the append condition on every step, failed as soon as the
Platform client wrapped the event store. Taken from #196 to release it
without the workflow telemetry feature.

@CodeDrivenMitch CodeDrivenMitch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CodeDrivenMitch
CodeDrivenMitch merged commit ddb773a into main Nov 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants