Skip to content
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

Set min_log_gap_to_join to max_int32. #587

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

xiaoxichen
Copy link
Collaborator

No description provided.

@xiaoxichen xiaoxichen requested a review from sanebay November 13, 2024 01:38
@codecov-commenter
Copy link

codecov-commenter commented Nov 13, 2024

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

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.23%. Comparing base (1a0cef8) to head (0fb7a66).
Report is 89 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #587       +/-   ##
===========================================
+ Coverage   56.51%   67.23%   +10.72%     
===========================================
  Files         108      109        +1     
  Lines       10300    10726      +426     
  Branches     1402     1465       +63     
===========================================
+ Hits         5821     7212     +1391     
+ Misses       3894     2819     -1075     
- Partials      585      695      +110     

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

@JacksonYao287
Copy link
Contributor

looks good, can you also set use_new_joiner_type_ to true in this PR?

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

@@ -242,7 +242,7 @@ table Consensus {
stale_log_gap_lo_threshold: int32 = 30;

// Minimum log gap a replica has to be from leader before joining the replica set.
min_log_gap_to_join: int32 = 30;
min_log_gap_to_join: int32 = 2147483647;
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT : can we change 2147483647 to some kind like 0x7FFFFFFF or INT32_MAX , which will be more readable.

@xiaoxichen xiaoxichen merged commit 6f6b4fb into eBay:master Nov 13, 2024
21 checks passed
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