Skip to content

fix PersistentActor_should_be_able_to_persist_events_that_happen_during_recovery #3805

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

Conversation

Aaronontheweb
Copy link
Member

#3786 - fix PersistentActor_should_be_able_to_persist_events_that_happen_during_recovery by porting akka/akka#22232

…ng_recovery

akkadotnet#3786 - fix PersistentActor_should_be_able_to_persist_events_that_happen_during_recovery by porting akka/akka#22232
public class PersistentActorRecoveryTimeoutSpec : PersistenceSpec
{
private const string JournalId = "persistent-actor-recovery-timeout-spec";
private static readonly AtomicCounter JournalIdNumber = new AtomicCounter(0);
Copy link
Member Author

Choose a reason for hiding this comment

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

Race conditions in this test were caused by multiple parallel test cases accessing the same SteppingMemoryJournal - forced this test case to run sequentially (via the Collection attribute on the class) and made it so each SteppingMemoryJournal instance was isolated to each test case.

@Aaronontheweb Aaronontheweb merged commit c11f5b7 into akkadotnet:dev May 22, 2019
@Aaronontheweb Aaronontheweb deleted the 3786_AkkaPersistence_persistDuringRecovery branch May 22, 2019 01:15
madmonkey pushed a commit to madmonkey/akka.net that referenced this pull request Jul 12, 2019
…ng_recovery (akkadotnet#3805)

* fix PersistentActor_should_be_able_to_persist_events_that_happen_during_recovery

akkadotnet#3786 - fix PersistentActor_should_be_able_to_persist_events_that_happen_during_recovery by porting akka/akka#22232

* force PersistentActorRecoverySpec to use new SteppingMemoryJournal instance each time
Aaronontheweb added a commit to Aaronontheweb/akka.net that referenced this pull request Jul 30, 2019
…ng_recovery (akkadotnet#3805)

* fix PersistentActor_should_be_able_to_persist_events_that_happen_during_recovery

akkadotnet#3786 - fix PersistentActor_should_be_able_to_persist_events_that_happen_during_recovery by porting akka/akka#22232

* force PersistentActorRecoverySpec to use new SteppingMemoryJournal instance each time
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.

1 participant