-
Notifications
You must be signed in to change notification settings - Fork 15
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
Commit Blocks in Snapshot and Enhance UT #258
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #258 +/- ##
==========================================
- Coverage 63.15% 62.46% -0.70%
==========================================
Files 32 33 +1
Lines 1900 2587 +687
Branches 204 307 +103
==========================================
+ Hits 1200 1616 +416
- Misses 600 808 +208
- Partials 100 163 +63 ☔ View full report in Codecov by Sentry. |
3c2ab19
to
851cb39
Compare
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.
lgtm, a bit concern on the leader we assigned during creation might not be the leader when we doing the test (if leader switch happened in between). But as far as this is testing code, it 's LGTM
Yes, it could occur, will improve it by using get_leader_id instead of constant initial_leader_replica_id as far as possible to reduce the chances of this case occurring. |
But if the leader is replica-0 it is hard to handle :). Maybe explicity request leadership is better . Anyway lets improve later, feel free to merge as is |
Ok, if it supports to force change leadership to the specified member, that will be easy, we can request and wait for leader. |
Commit Blocks in snapshot, or the blocks will be overwritten after restart.
Add more UTs to test logic when follower/leader restart.