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

fix: EventSourcedBehaviorRetentionSpec fail #31809

Conversation

johanandren
Copy link
Member

@johanandren johanandren commented Jan 5, 2023

References #31796

The changes in #31785 means that retention deletes can be skipped if one is already in progress. The test expected that the retention/deletes they are always run and fired off events that should trigger 3 deletes at once, if the deletes complete or not before the next retention is triggered depends on how fast the machine is (hint ci is slow)

This fix runs the events in batches verifying each delete before triggering the next making it deterministic again.

Verified by sneaking strategic Thread.sleeps into the testkit snapshot store operations.

Copy link
Contributor

@efgpinto efgpinto left a comment

Choose a reason for hiding this comment

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

LGTM

@octonato octonato merged commit f38f8cc into akka:main Jan 6, 2023
@johanandren johanandren deleted the wip-31796-EventSourcedBehaviorRetentionSpec-fail branch January 9, 2023 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants