-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
correctness fixes for the autobatch blockstore #7940
Conversation
} | ||
|
||
bs.doFlushLock.Lock() |
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.
Is this just to make sure that any earlier claimers of the lock finish before we return?
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.
Concurrent Flush and Shutdown.
1. Simplify shutdown and make it idempotent by using a context. 2. Make sure `Flush` actually _fully_ flushes if the previous flush failed. 3. Don't clear the flush batch if flushing fails.
c7246e1
to
2a862d4
Compare
(forgot to create the channel) |
Codecov Report
@@ Coverage Diff @@
## master #7940 +/- ##
==========================================
+ Coverage 39.32% 39.34% +0.01%
==========================================
Files 658 658
Lines 71119 71122 +3
==========================================
+ Hits 27970 27981 +11
+ Misses 38332 38331 -1
+ Partials 4817 4810 -7
Continue to review full report at Codecov.
|
folllowing the PR template - a nice PR title should be created so our change log is pretty |
Flush
actually fully flushes if the previous flush failed.