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

Clear outdated failure reports more accurately #1184

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

enjoy-binbin
Copy link
Member

There are two changes here:

  1. The one in clusterNodeCleanupFailureReports, only primary with slots can
    report the failure report, if the primary became a replica its failure report
    should be cleared. This may lead to inaccurate node fail judgment in some network
    partition cases i guess, it will also affect the CLUSTER COUNT-FAILURE-REPORTS
    command.

  2. The one in clusterProcessGossipSection, it is not that important, but it can
    print a "node is back online" log helps us troubleshoot the problem, although
    it may conflict with 1 at some points.

There are two changes here:

1. The one in clusterNodeCleanupFailureReports, only primary with slots can
report the failure report, if the primary became a replica its failure report
should be cleared. This may lead to inaccurate node fail judgment in some network
partition cases i guess, it will also affect the CLUSTER COUNT-FAILURE-REPORTS
command.

2. The one in clusterProcessGossipSection, it is not that important, but it can
print a "node is back online" log helps us troubleshoot the problem, although
it may conflict with 1 at some points.

Signed-off-by: Binbin <[email protected]>
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.65%. Comparing base (701ab72) to head (1a4cd92).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1184      +/-   ##
============================================
+ Coverage     70.47%   70.65%   +0.17%     
============================================
  Files           114      114              
  Lines         61799    61804       +5     
============================================
+ Hits          43555    43668     +113     
+ Misses        18244    18136     -108     
Files with missing lines Coverage Δ
src/cluster_legacy.c 86.21% <100.00%> (+0.21%) ⬆️

... and 13 files with indirect coverage changes

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.

1 participant