Skip to content

Fix command line startup --sentinel problem#11591

Merged
oranagra merged 1 commit intoredis:unstablefrom
enjoy-binbin:fix_sentinel_command_line
Dec 6, 2022
Merged

Fix command line startup --sentinel problem#11591
oranagra merged 1 commit intoredis:unstablefrom
enjoy-binbin:fix_sentinel_command_line

Conversation

@enjoy-binbin
Copy link
Contributor

@enjoy-binbin enjoy-binbin commented Dec 6, 2022

There is a issue with --sentinel:

[root]# src/redis-server sentinel.conf --sentinel --loglevel verbose

*** FATAL CONFIG FILE ERROR (Redis 255.255.255) ***
Reading the configuration file, at line 352
>>> 'sentinel "--loglevel" "verbose"'
Unrecognized sentinel configuration statement

This is because in #10660 (Redis 7.0.1), -- prefix change break it.
In this PR, we will handle --sentinel the same as we did for --save
in #10866 (Redis 7.0.3). i.e. it's a pseudo config option with no value.

Fixes #11586.

There is a issue with --sentinel:
```
[root]# src/redis-server sentinel.conf --sentinel --loglevel verbose

*** FATAL CONFIG FILE ERROR (Redis 255.255.255) ***
Reading the configuration file, at line 352
>>> 'sentinel "--loglevel" "verbose"'
Unrecognized sentinel configuration statement
```

This is because in redis#10660 (Redis 7.0.1), `--` prefix change break it.
In this PR, we will handle `--sentinel` the same as we did for `--save`
in redis#10866. i.e. it's a pseudo config option with no value.

Fixes redis#11586.

Co-authored-by: Oran Agra <[email protected]>
@enjoy-binbin
Copy link
Contributor Author

maybe the comment is a bit too much or unclear, can help polish if needed
is there any way to add this --sentinel test to our test case

@enjoy-binbin enjoy-binbin requested a review from oranagra December 6, 2022 09:01
Copy link
Member

@oranagra oranagra left a comment

Choose a reason for hiding this comment

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

thanks!

@oranagra oranagra merged commit 8f13ac1 into redis:unstable Dec 6, 2022
@oranagra oranagra added the release-notes indication that this issue needs to be mentioned in the release notes label Dec 6, 2022
@enjoy-binbin enjoy-binbin deleted the fix_sentinel_command_line branch December 6, 2022 09:15
@oranagra oranagra mentioned this pull request Dec 11, 2022
oranagra pushed a commit that referenced this pull request Dec 12, 2022
There is a issue with --sentinel:
```
[root]# src/redis-server sentinel.conf --sentinel --loglevel verbose

*** FATAL CONFIG FILE ERROR (Redis 255.255.255) ***
Reading the configuration file, at line 352
>>> 'sentinel "--loglevel" "verbose"'
Unrecognized sentinel configuration statement
```

This is because in #10660 (Redis 7.0.1), `--` prefix change break it.
In this PR, we will handle `--sentinel` the same as we did for `--save`
in #10866. i.e. it's a pseudo config option with no value.

(cherry picked from commit 8f13ac1)
madolson pushed a commit to madolson/redis that referenced this pull request Apr 19, 2023
There is a issue with --sentinel:
```
[root]# src/redis-server sentinel.conf --sentinel --loglevel verbose

*** FATAL CONFIG FILE ERROR (Redis 255.255.255) ***
Reading the configuration file, at line 352
>>> 'sentinel "--loglevel" "verbose"'
Unrecognized sentinel configuration statement
```

This is because in redis#10660 (Redis 7.0.1), `--` prefix change break it.
In this PR, we will handle `--sentinel` the same as we did for `--save`
in redis#10866. i.e. it's a pseudo config option with no value.
enjoy-binbin added a commit to enjoy-binbin/redis that referenced this pull request Jul 31, 2023
There is a issue with --sentinel:
```
[root]# src/redis-server sentinel.conf --sentinel --loglevel verbose

*** FATAL CONFIG FILE ERROR (Redis 255.255.255) ***
Reading the configuration file, at line 352
>>> 'sentinel "--loglevel" "verbose"'
Unrecognized sentinel configuration statement
```

This is because in redis#10660 (Redis 7.0.1), `--` prefix change break it.
In this PR, we will handle `--sentinel` the same as we did for `--save`
in redis#10866. i.e. it's a pseudo config option with no value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes indication that this issue needs to be mentioned in the release notes

Projects

Development

Successfully merging this pull request may close these issues.

[BUG] sentinel option gone

2 participants