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

[SpecFix] working on fixing AtLeastOnceDeliveryCrashSpec #3806

Merged

Conversation

Aaronontheweb
Copy link
Member

#3786 - added some debug logging to see why this test is racy. Looks like it's either an issue with Recovery, the timing configuration of the AtLeastOnceDeliveryActor in this spec, or the AtLeastOnceDeliverySemantic not handling recoveries properly.

Task.Run(() =>
{
Thread.Sleep(10);
return msg;
}).PipeTo(Sender, Self); //LogicalContext is lost?!?
}).PipeTo(sender, self);
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed this spec too - would sometimes fail because we didn't close over Sender .

Copy link
Member Author

Choose a reason for hiding this comment

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

This isn't the final fix here - still having issues.

@Aaronontheweb
Copy link
Member Author

Still having issues with Akka.Persistence.Tests.ReceivePersistentActorAsyncAwaitSpec.Actor_PipeTo_should_not_be_delayed_by_async_receive even after fix

@Aaronontheweb Aaronontheweb merged commit a3963cd into akkadotnet:dev May 26, 2019
@Aaronontheweb Aaronontheweb deleted the 3786_AtLeastOnceDeliveryCrashSpec branch May 26, 2019 17:26
madmonkey pushed a commit to madmonkey/akka.net that referenced this pull request Jul 12, 2019
…3806)

* akkadotnet#3786 - working on fixing AtLeastOnceDeliveryCrashSpec

* fixed issue with SnapshotDirectoryFailureSpec.LocalSnapshotStore_configured_with_a_failing_directory

* fixed Akka.Persistence.Tests.Actor_PipeTo_should_not_be_delayed_by_async_receive

* looks like issue might be related to parallel execution and thread blocking

* added logging for AtLeastOnceDelivery_must_tolerate_and_recover_from_random_failures
Aaronontheweb added a commit to Aaronontheweb/akka.net that referenced this pull request Jul 30, 2019
…3806)

* akkadotnet#3786 - working on fixing AtLeastOnceDeliveryCrashSpec

* fixed issue with SnapshotDirectoryFailureSpec.LocalSnapshotStore_configured_with_a_failing_directory

* fixed Akka.Persistence.Tests.Actor_PipeTo_should_not_be_delayed_by_async_receive

* looks like issue might be related to parallel execution and thread blocking

* added logging for AtLeastOnceDelivery_must_tolerate_and_recover_from_random_failures
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.

1 participant