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

Fix default value of primary-reboot-down-after-period in sentinel.conf #1040

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

Conversation

enjoy-binbin
Copy link
Member

Since in here the monitor value is mymaster, we need to make sure the primary
name is the same, otherwise the default configuration cannot start sentinel.

sentinel monitor mymaster 127.0.0.1 6379 2

The following error occurs when the default configuration is started:

*** FATAL CONFIG FILE ERROR (Version 255.255.255) ***
Reading the configuration file, at line 358
>>> 'SENTINEL primary-reboot-down-after-period myprimary 0'
No such master with specified name.

Introduced in #647.

Since in here the monitor value is mymaster, we need to make sure the primary
name is the same, otherwise the default configuration cannot start sentinel.
```
sentinel monitor mymaster 127.0.0.1 6379 2
```

The following error occurs when the default configuration is started:
```
*** FATAL CONFIG FILE ERROR (Version 255.255.255) ***
Reading the configuration file, at line 358
>>> 'SENTINEL primary-reboot-down-after-period myprimary 0'
No such master with specified name.
```

Introduced in valkey-io#647.

Signed-off-by: Binbin <binloveplay1314@qq.com>
@enjoy-binbin enjoy-binbin added the release-notes This issue should get a line item in the release notes label Sep 17, 2024
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.62%. Comparing base (f89ff31) to head (760f7a4).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1040      +/-   ##
============================================
+ Coverage     70.58%   70.62%   +0.03%     
============================================
  Files           114      114              
  Lines         61670    61670              
============================================
+ Hits          43530    43553      +23     
+ Misses        18140    18117      -23     

see 11 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes This issue should get a line item in the release notes
Projects
Status: To be backported
Development

Successfully merging this pull request may close these issues.

2 participants