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

Problem with implimentation of akka persistence contract #143

Merged
merged 2 commits into from
Apr 3, 2021

Conversation

MattiasJakobsson
Copy link
Contributor

We ran in to a issue where if at least one AtomicWrite failed while at least one succeeded then the persistence actor would fail (instead of replying with a rejected message). This seem to be because of the following validation:
https://github.com/akkadotnet/akka.net/blob/dev/src/core/Akka.Persistence/Journal/AsyncWriteJournal.cs#L393.
This PR should implement the contract correctly to get the expected response.

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -383,15 +383,19 @@ protected override void PreStart()
if (_log.IsDebugEnabled && _settings.VerboseLogging)
foreach (var r in persistenceResults)
_log.Debug("Azure table storage wrote entity [{0}] with status code [{1}]", r.Etag, r.HttpStatusCode);

exceptions = exceptions.Add(null);
Copy link
Member

Choose a reason for hiding this comment

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

@Aaronontheweb Aaronontheweb merged commit 114f346 into petabridge:dev Apr 3, 2021
@MattiasJakobsson MattiasJakobsson deleted the fix-write-contract branch April 13, 2021 13:36
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.

2 participants