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

Introduce exit-on-cluster-config-file-save-error to prevent the process from existing when saving fails #1032

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

Conversation

enjoy-binbin
Copy link
Member

In clusterSaveConfigOrDie, we will exit directly when saving
fails. In the case of disk failure, the cluster node will exit
immediately if there are some changes around the cluster.

Passive exit may bring unexpected effects, such as cluster down.
Provoide exit-on-cluster-config-file-save-error configuration
timen to control this behavior. Users who do not rely on nodes.conf
can actively migrate it later (or during low traffic periods).

…ss from existing when saving fails

In clusterSaveConfigOrDie, we will exit directly when saving
fails. In the case of disk failure, the cluster node will exit
immediately if there are some changes around the cluster.

Passive exit may bring unexpected effects, such as cluster down.
Provoide exit-on-cluster-config-file-save-error configuration
timen to control this behavior. Users who do not rely on nodes.conf
can actively migrate it later (or during low traffic periods).

Signed-off-by: Binbin <binloveplay1314@qq.com>
@enjoy-binbin
Copy link
Member Author

@PingXie This is a change I wanted to make a while ago, we'll discuss it in a later version.

Copy link

codecov bot commented Sep 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.62%. Comparing base (9f8185f) to head (9f1aea0).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1032      +/-   ##
============================================
+ Coverage     70.59%   70.62%   +0.02%     
============================================
  Files           114      114              
  Lines         61670    61670              
============================================
+ Hits          43538    43552      +14     
+ Misses        18132    18118      -14     
Files with missing lines Coverage Δ
src/cluster_legacy.c 86.20% <100.00%> (-0.04%) ⬇️
src/config.c 78.69% <ø> (ø)
src/server.h 100.00% <ø> (ø)

... and 12 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
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant