Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure default TrackingEventProcessorConfiguration is taken into account for Sagas #2533

Merged
merged 2 commits into from Dec 29, 2022

Conversation

smcvb
Copy link
Member

@smcvb smcvb commented Dec 28, 2022

The EventProcessingConfigurer#registerTrackingEventProcessorConfiguration(Function<Configuration, TrackingEventProcessorConfiguration>) did not overrule the default Saga TrackingEventProcessorConfiguration.
This is an unintended side effect when we introduced the default configuration for Sagas in issue #1019.

This pull request resolves that by adding the default TrackingEventProcessorConfiguration in the map of TrackingEventProcessorConfigurations when EventProcessingConfigurer#registerTrackingEventProcessorConfiguration is invoked.
This provides a simple location to validate this customization when constructing the TrackingEventProcessor and when defining the Saga configuration.

Whenever a default TrackingEventProcessorConfiguration was configured
consciously through the EventProcessingConfigurer, it was not taken into
 accounts for Sagas. This occurs as the EventProcessingModule does not
 validate whether a default TEP was configured to switch between
 customization and the default Saga TEP configuration.

#bug/default-tep-config-sagas
@smcvb smcvb added Type: Bug Use to signal issues that describe a bug within the system. Priority 2: Should High priority. Ideally, these issues are part of the release they’re assigned to. Status: In Progress Use to signal this issue is actively worked on. labels Dec 28, 2022
@smcvb smcvb added this to the Release 4.6.3 milestone Dec 28, 2022
@smcvb smcvb requested review from saratry and a team December 28, 2022 14:00
@smcvb smcvb self-assigned this Dec 28, 2022
@smcvb smcvb requested review from gklijs and CodeDrivenMitch and removed request for a team December 28, 2022 14:00
Remove redundant import

#2533
@sonarcloud
Copy link

sonarcloud bot commented Dec 28, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@smcvb smcvb merged commit 856b880 into axon-4.6.x Dec 29, 2022
@smcvb smcvb deleted the bug/default-tep-config-sagas branch December 29, 2022 15:30
@smcvb smcvb added Status: Resolved Use to signal that work on this issue is done. and removed Status: In Progress Use to signal this issue is actively worked on. labels Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority 2: Should High priority. Ideally, these issues are part of the release they’re assigned to. Status: Resolved Use to signal that work on this issue is done. Type: Bug Use to signal issues that describe a bug within the system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants