Skip to content

Conversation

@yuwmao
Copy link
Contributor

@yuwmao yuwmao commented Jan 6, 2026

  • Add flip to control complete_replace_member, it is enabled after we check replace member intermediate status.
  • In ReplaceMemberRollback UT, wait for in member being caught up before rollback.

@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.37%. Comparing base (1a0cef8) to head (faed0d2).
⚠️ Report is 305 commits behind head on master.

Files with missing lines Patch % Lines
src/lib/replication/service/raft_repl_service.cpp 50.00% 1 Missing and 1 partial ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #844      +/-   ##
==========================================
- Coverage   56.51%   49.37%   -7.15%     
==========================================
  Files         108      110       +2     
  Lines       10300    11460    +1160     
  Branches     1402     5431    +4029     
==========================================
- Hits         5821     5658     -163     
+ Misses       3894     2099    -1795     
- Partials      585     3703    +3118     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yuwmao yuwmao force-pushed the fix_ut branch 6 times, most recently from f5d3828 to e999956 Compare January 7, 2026 09:16
Copy link
Contributor

@JacksonYao287 JacksonYao287 left a comment

Choose a reason for hiding this comment

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

LGTM , except one minor comment.

on question, is this a temporary solution to unblock UT now? or this will be a final solution, which means we will never involve monitor_replace_member_replication_status in raft_repl_dev UT?

@yuwmao
Copy link
Contributor Author

yuwmao commented Jan 7, 2026

LGTM , except one minor comment.

on question, is this a temporary solution to unblock UT now? or this will be a final solution, which means we will never involve monitor_replace_member_replication_status in raft_repl_dev UT?

Actually monitor_replace_member_replication_status is still involved(still rely on it to complete). After removing flip at L75, the monitor_replace_member_replication_status is restored which will trigger complete_replace_member. The purpose of this flip is to skip monitor_replace_member_replication_status before we verify the check_replace_member_status to guarantees complete_replace_member happens after the check.
The reason why I don't manually call monitor_replace_member_replication_status once to trigger complete is because complete_replace_member may fail, periodical monitor_replace_member_replication_status supports retry.

- Add flip to control complete_replace_member.
- In ReplaceMemberRollback UT, wait for in member being caught up before rollback.
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.

3 participants