Skip to content

Conversation

@enjoy-binbin
Copy link
Member

For corrupted (human-made) or program-error-recovered nodes.conf files,
check for duplicate nodeids when loading nodes.conf. If a duplicate is
found, panic is triggered to prevent nodes from starting up unexpectedly.

The node ID is used to identify every node across the whole cluster,
we do not expect to find duplicate nodeids in nodes.conf.

For corrupted (human-made) or program-error-recovered nodes.conf files,
check for duplicate nodeids when loading nodes.conf. If a duplicate is
found, panic is triggered to prevent nodes from starting up unexpectedly.

The node ID is used to identify every node across the whole cluster,
we do not expect to find duplicate nodeids in nodes.conf.

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

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

This is very unusual? Only human edited nodes.conf and similar errors?

Signed-off-by: Binbin <[email protected]>
@enjoy-binbin
Copy link
Member Author

This is very unusual? Only human edited nodes.conf and similar errors?

yes, i did manually edited and test it locally, and the node attributes were overridden in various ways. Adding a safeguard doesn't seem like a bad thing.

@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

❌ Patch coverage is 70.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.45%. Comparing base (4a0e20b) to head (d2db058).

Files with missing lines Patch % Lines
src/cluster_legacy.c 70.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #2852   +/-   ##
=========================================
  Coverage     72.44%   72.45%           
=========================================
  Files           128      128           
  Lines         70487    70497   +10     
=========================================
+ Hits          51066    51078   +12     
+ Misses        19421    19419    -2     
Files with missing lines Coverage Δ
src/cluster_legacy.c 87.39% <70.00%> (-0.16%) ⬇️

... and 11 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@hwware hwware left a comment

Choose a reason for hiding this comment

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

Any concern for this PR?

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.

7 participants