Repository navigation
Axon Framework v5.4.0
Starting 5.4.0, the Axoniq Framework repository has been made public as well.
As such, the release notes for Axoniq Framework can now be validated over there.
⭐ Features
- Introduce QueryShutdownManager and named QueryGateway factory (PR #4482, by @abuijze)
- Revive saga and deadline support as a single axon-legacy module (PR #4979, by @MateuszNaKodach)
- Port the Axon Framework 4 saga stores into axon-legacy (PR #4992, by @MateuszNaKodach)
- Rework
SagaLifecycleto resolvable parameter (#4991, PR #4997, by @smcvb) - Port the Axon Framework 4 saga repositories into axon-legacy (PR #5009, by @MateuszNaKodach)
- Port the Axon Framework 4 saga manager into axon-legacy (PR #5022, by @MateuszNaKodach)
- Port MongoSagaStore from Axon Framework 4 into axon-legacy (PR #5037, by @MateuszNaKodach)
- Saga test fixture on axon-legacy-test (PR #5040, by @MateuszNaKodach)
- Spring Boot autoconfiguration for axon-legacy Sagas (PR #5049, by @MateuszNaKodach)
- Add OpenRewrite migration for legacy Sagas (PR #5070, by @MateuszNaKodach)
- Defer and cache ambient JDBC/JPA resource acquisition (PR #5099, by @hjohn)
- Expand
EntityIdResolverfunctionality (PR #5130, by @smcvb) - Companion to the deadline managers in axoniq-legacy (PR #5131, by @hatzlj)
- OpenRewrite recipes for Axon Framework 4 deadlines on axoniq-legacy (#5048, PR #5140, by @MateuszNaKodach)
- Document that XStream-aliased deadline type names resolve (PR #5142, by @hatzlj)
📈 Enhancements
- Clear the re-claim block when a split or merge fails (#4798, PR #4804, by @schananas)
- Implement lowerBound on the aggregate-based consistency marker (#4815, PR #4819, by @schananas)
- Leave the processor token-store name unset by default (#4809, PR #4823, by @schananas)
- Match segments against pre-resolved sequence identifiers (PR #4857, by @MateuszNaKodach)
- Introduce a
VersionedTypeinterface (PR #4926, by @Ishaan453) - Dedicated
@EntityCreatorannotation enforcing entity creation regardless of existence (PR #4930, by @smcvb) - Defer JPA
PersistenceExceptionResolverinitialization (#4052, PR #4941, by @christopherfriedrich) - Add reporting of tags used for the append in the append exception (PR #4964, by @hjohn)
- Introduce spring-boot compatibility test matrix (PR #4975, by @hatzlj)
- Reintroduce Handler- and UnitofWork-timeout support (#3559, PR #4980, by @smcvb)
SimpleQueryBusshould wrap any subscription query update exception inCompletableFuture(PR #4984, by @smcvb)- Expand
UpdateCheckerlogic (PR #4993, by @smcvb) - Finalize
AnnotatedSagaEventHandlingComponentimplementations (PR #5010, by @smcvb) - Test Map-based
AggregateMemberrewrites (PR #5012, by @smcvb) - Encode username header value for non-ascii characters (PR #5027, by @CodeDrivenMitch)
SnapshotCapableEventStorageEngine#decorateshould only decorate none-SnapshotStoreengines (PR #5039, by @smcvb)- Recognize a self-hosting engine even when its SnapshotStore is decorated (PR #5056, by @hjohn)
- Replace
Sagaswith the AF4-style SagaConfigurer (PR #5069, by @MateuszNaKodach) - OpenRewrite: keep @saga and SagaTestFixture on the legacy path, pin the plugin version (PR #5073, by @schananas)
- Initialize
SpringComponentRegistrybefore the first top-level bean (PR #5085, by @abuijze) - Remove SonarQube/SonarCloud from the build (PR #5089, by @hjohn)
- Move the legacy module to Axoniq Framework (#5074, PR #5092, by @hatzlj)
- Spring Cloud Connector - Example (PR #5095, by @jangalinski)
- Open up
ApplicationConfigurerTestSuite(PR #5102, by @smcvb) - Promote the ambient JDBC/JPA transactional-executor types to public API (PR #5110, by @hjohn)
- Prefer the type-level component when autowiring Axon components by type (PR #5112, by @abuijze)
- Fix untimed join() calls in query test suites (PR #5115, by @hjohn)
- Run the legacy Saga migration only from the Axoniq recipe (PR #5127, by @MateuszNaKodach)
- Bring the deadlines back into the legacy saga recipe (PR #5137, by @MateuszNaKodach)
🪲 Bug Fixes
- Recognise the broadcast sentinel by identity instead of by value (#4800, PR #4805, by @schananas)
- Resolve the reset converter only when there is a reset context (#4796, PR #4806, by @schananas)
- Keep the work package's stored token monotonic from the first store of a claim (#4801, PR #4807, by @schananas)
- Adopt a concurrently created config token instead of failing to start (#4802, PR #4813, by @schananas)
- Fall back to the event identifier when a sequencing policy resolves nothing (#4797, PR #4818, by @schananas)
- Align the autoconfigured JPA gap defaults with the core defaults (#4799, PR #4821, by @schananas)
- Make a batch of appended events visible atomically in the in-memory store (#4824, PR #4826, by @schananas)
- Ensure
HierarchicalStateManagersupports Entity-subtype search (#4904, PR #4915, by @smcvb) - Correctly support
@EventSourcedannotation for polymorphic entities (#4906, PR #4916, by @smcvb) SegmentChangeListner#onSegmentClaimedhas token parameter | UnifyinitializeTokenSegmentsfailure behavior (#4924, PR #4925, by @schananas)- Release the token claim after the segment release listeners (PR #4927, by @schananas)
- Return
ManagedEntityfromRepositoryand provided to@InjectEntityannotated parameters at all times (PR #4929, by @smcvb) - Fix broken link to entity-creator.adoc in stateful-command-handler.adoc (PR #4937, by @corradom)
- Convert message handlers to right MessageStream cardinality (PR #4940, by @CodeDrivenMitch)
- Fix SNAPSHOT publishing (PR #4942, by @smcvb)
- Copy InMemorySnapshotStore payloads through a Converter (#4865, PR #4960, by @wadhwaroh-lang)
- Ensure user-configured
HandlerDefinitionsandHandlerEnhancerDefinitionsare utilized throughout (#4786, PR #4961, by @smcvb) - Bound the polling thread join in
JpaPollingEventCoordinator.terminate()(PR #4967, by @smcvb) - Ensure returned
CommandResultMessageis nevernull(PR #4994, by @smcvb) - Multi-Member entity event routing: docs, tests, and @eventtag recipe (PR #4998, by @MateuszNaKodach)
- Fix for appending events in
SubscribingEventProcessor(PR #5014, by @MateuszNaKodach) - Invoke a before-interceptor's handler exactly once (PR #5030, by @MateuszNaKodach)
- Support Entity-specific (annotated) command handler interceptors (PR #5032, by @smcvb)
- Fix bugs found in AF4 during large investigation in AF5 (PR #5034, by @hjohn)
- Defer
ConfigurationPropertiesBindingqualified beans onSpringComponentRegistryinitialization (PR #5041, by @smcvb) - Token claims stolen from segments waiting for a worker thread, despite coordinator claim extension (PR #5050, by @abuijze)
- Customizing a processor twice silently discards the earlier customization (PR #5051, by @abuijze)
- Fix NullPointerException for @CommandHandlerInterceptor on creational commands (PR #5063, by @abuijze)
- UpdateChecker parameters should not be in headers (PR #5067, by @CodeDrivenMitch)
- axon-legacy: convert serialized event payloads before saga handler matching (PR #5072, by @schananas)
- Prevent PSEP from redelivering events to a lagging half of a merged segment (#5079, PR #5081, by @hatzlj)
- Defer
SpringComponentRegistryinitialization while a bind handler advisor is in creation (PR #5084, by @abuijze) - Ensure Micrometer
MessageMonitorsare Spring Boot-autoconfigured (#5077, PR #5090, by @smcvb) - Delegate supports and unwrap in TracingEventHandlingComponent (#5096, PR #5097, by @schananas)
- Ensure
AxonTaskJanitor'sScheduledExecutorServiceshutdown is tied to Framework lifecycle (#5078, PR #5098, by @smcvb) - Include and validate
AxonTimeoutAutoConfiguration(#3959, PR #5100, by @smcvb) - Allow getting executor without throwing exception (PR #5103, by @hjohn)
- Point the legacy saga migration recipe at io.axoniq.framework:axoniq-legacy (PR #5118, by @MateuszNaKodach)
- Release the segment claim on the coordinator's executor (#5116, PR #5123, by @schananas)
- Ensure
commandNameof@CommandHandleris honored on Entities (PR #5134, by @smcvb)
📖 Documentation
- Add 5.3.0 release notes (PR #4895, by @smcvb)
- Add PostgreSQL known-issue link in Token Store section (PR #4945, by @smcvb)
- Add 5.3.1 release notes (PR #4950, by @smcvb)
- Document the blast radius of a stalled segment (PR #4956, by @abuijze)
- Include a Configuration chapter to the Documentation (#4062, PR #4958, by @smcvb)
- Add saga-recipes example and a Sagas and Process Managers guide (#4619, PR #4969, by @MateuszNaKodach)
- Document that the initial token is not a replay (PR #4982, by @MateuszNaKodach)
- Release notes for 5.3.2 (PR #5045, by @smcvb)
- introduce ADRs for legacy deadlines (PR #5054, by @hatzlj)
- Preserve command routingKey in @TargetAggregateIdentifier migration path (PR #5071, by @MateuszNaKodach)
- Add Axon Framework 5.3.3 release notes (PR #5104, by @smcvb)
- Document Scope and the DeadlineManager core in axoniq-legacy (PR #5106, by @hatzlj)
- Keep the scope types at their Axon Framework 4 packages (PR #5109, by @hatzlj)
- Drop "what is not there yet" from Migration Paths index page (PR #5114, by @smcvb)
- Document Legacy
XStreamConverterexistence (PR #5117, by @smcvb) - Introduce a Message Scheduling guide (#4959, PR #5129, by @smcvb)
- Companion to the Saga deadline delivery in axoniq-legacy (PR #5135, by @hatzlj)
🛠️ Dependency Upgrades
- Bump org.springdoc:springdoc-openapi-starter-webflux-ui from 3.0.3 to 3.1.0 in /examples/university-java-springboot-4 in the maven-dependencies group (PR #4898, by @app/dependabot)
- Bump actions/setup-java from 5.6.0 to 5.7.0 in the github-dependencies group (PR #4900, by @app/dependabot)
- Bump the maven-dependencies group across 1 directory with 4 updates (PR #4901, by @app/dependabot)
- Bump org.springdoc:springdoc-openapi-starter-webflux-ui from 2.9.0 to 3.1.0 in /examples/university-java-springboot-4 in the maven-dependencies group (PR #4918, by @app/dependabot)
- Bump com.tngtech.archunit:archunit-junit5 from 1.4.2 to 1.5.0 in the maven-dependencies group across 1 directory (PR #4919, by @app/dependabot)
- Bump io.axoniq.framework:axoniq-framework-bom from 5.3.0-SNAPSHOT to 5.3.0 (PR #4920, by @app/dependabot)
- Bump @antora/site-generator from 3.2.0-rc.2 to 3.2.0-rc.3 in /docs/_playbook (PR #4953, by @app/dependabot)
- Bump @antora/cli from 3.2.0-rc.2 to 3.2.0-rc.3 in /docs/_playbook (PR #4954, by @app/dependabot)
- Bump the maven-dependencies group across 1 directory with 13 updates (PR #4955, by @app/dependabot)
- Bump tools.jackson:jackson-bom from 3.2.1 to 3.2.2 in /examples/university-java-springboot-4 in the maven-dependencies group (PR #4972, by @app/dependabot)
- Bump the maven-dependencies group across 1 directory with 11 updates (PR #4973, by @app/dependabot)
- Bump org.springframework.boot:spring-boot-dependencies from 4.1.0 to 4.1.1 in /examples/university-java-springboot-4 in the maven-dependencies group (PR #4976, by @app/dependabot)
- Bump the maven-dependencies group across 1 directory with 7 updates (PR #4978, by @app/dependabot)
- Bump actions/setup-java from 5.7.0 to 6.0.0 in the github-dependencies group (PR #4987, by @app/dependabot)
- Bump the maven-dependencies group across 1 directory with 5 updates (PR #4989, by @app/dependabot)
- Pin
actions/add-to-projecttov2instead ofmain(PR #5008, by @corradom) - Bump @antora/cli from 3.2.0-rc.3 to 3.2.0 in /docs/_playbook (PR #5024, by @app/dependabot)
- Bump @antora/site-generator from 3.2.0-rc.3 to 3.2.0 in /docs/_playbook (PR #5025, by @app/dependabot)
- Bump the maven-dependencies group across 1 directory with 15 updates (PR #5026, by @app/dependabot)
- Bump the maven-dependencies group across 1 directory with 2 updates (PR #5029, by @app/dependabot)
- Bump actions/setup-java from 6.0.0 to 6.0.1 in the github-dependencies group (PR #5058, by @app/dependabot)
- Bump org.springdoc:springdoc-openapi-starter-webflux-ui from 3.1.0 to 3.1.1 in /examples/university-java-springboot-4 in the maven-dependencies group (PR #5060, by @app/dependabot)
- Bump the maven-dependencies group across 1 directory with 12 updates (PR #5061, by @app/dependabot)
- Bump the maven-dependencies group across 1 directory with 12 updates (PR #5076, by @app/dependabot)
- Bump the maven-dependencies group in /examples/university-java-springboot-4 with 2 updates (PR #5082, by @app/dependabot)
- Bump the maven-dependencies group across 1 directory with 14 updates (PR #5083, by @app/dependabot)
- Bump @antora/atlas-extension from 1.0.0-alpha.5 to 1.0.0-alpha.6 in /docs/_playbook (PR #5107, by @app/dependabot)
- Bump the maven-dependencies group across 1 directory with 10 updates (PR #5108, by @app/dependabot)
- Bump proxy-addr from 2.0.7 to 2.0.8 in /docs/_playbook (PR #5120, by @app/dependabot)
- Bump handlebars from 4.7.9 to 4.7.10 in /docs/_playbook (PR #5136, by @app/dependabot)
- Bump the antora-dependencies group in /docs/_playbook with 2 updates (PR #5138, by @app/dependabot)
- Bump the maven-dependencies group across 1 directory with 6 updates (PR #5139, by @app/dependabot)
❤️ Contributors
A heartfelt thank you to all contributors who worked on this section: