-
Notifications
You must be signed in to change notification settings - Fork 51
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
issue in 'writeMessages' which doesn't update high sequence value in certain cases #98
Comments
Thanks for the clear report! Definitely concerning. |
Ok. This branch introduces a test that fails on given problem (after some modifications to make things run in VSCode) This branch does the minimal fix, which prevents the problem from occurring. So addresses the root cause. This branch makes a fix that can recover event sources that suffer from this problem but have not been corrupted by overwrites. (overwrites we can't fix). It does not contain the first fix because that allows showing that indeed fixes "the problem" too, so successfully recovers from the error, even though that still occurs (needs to be explicitly enabled by a config flag BTW) This branch contains all of the above. So adds both root cause and recovery fix. |
I think this was fixed #100 and now part of the 1.1.2 release |
It seems to be, but shouldn't that version have been released as 1.2.0? |
My bad, I looked at the changes and thought a patch release was good and minor didn't need a bump, but I noticed the 1.2.0 milestone after the release was already done. |
Versions used
akka-persistence-dynamodb: 1.1.1
Akka version: 2.6.10
Expected Behavior
When using 'persistAll' or 'persistAllAsync' with more than one events, If lowestSequenceNr is 100, 200, 300 etc, then it should update the high sequence record. It shouldn't allow overwriting of events too (akka/akka-persistence-dynamodb#64)
Actual Behavior
https://github.com/akka/akka-persistence-dynamodb#higher-throughput-structure
When writing an item we typically do not touch the high sequence number storage, only when writing an item with sort key 0 is this done.
The dynamodb writeMessages logic seems to have a bug:
The issue
The text was updated successfully, but these errors were encountered: