-
Notifications
You must be signed in to change notification settings - Fork 205
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
State snapshot improvement #4459
Conversation
Codecov Report
@@ Coverage Diff @@
## rc/v1.4.0 #4459 +/- ##
==========================================
Coverage 73.84% 73.84%
==========================================
Files 689 689
Lines 88127 88146 +19
==========================================
+ Hits 65075 65092 +17
- Misses 18140 18141 +1
- Partials 4912 4913 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
if errors.IsClosingError(err) { | ||
return nil, err | ||
} | ||
if len(val) != 0 { | ||
stsm.putInPreviousStorerIfAbsent(key, val, epoch) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
putIfAbsent :D
brings back so many memories
return | ||
} | ||
|
||
if epoch.Value >= stsm.epoch-1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so basically, if we are in current epoch 500, epoch will be 499 and we test for epoch 498?
Is this >= correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is that if the value was not retrieved from the current storer or previous storer, it needs to be saved to the previous storer.
0e4f225
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System test passed.
Description of the reasoning behind the pull request (what feature was missing / how the problem was manifesting itself / what was the motive behind the refactoring)
Proposed Changes
Testing procedure