Skip to content

Fix SENTINEL SET config rewrite test#10232

Merged
oranagra merged 1 commit intoredis:unstablefrom
enjoy-binbin:fix_sentinel_set_rewrite_test
Feb 4, 2022
Merged

Fix SENTINEL SET config rewrite test#10232
oranagra merged 1 commit intoredis:unstablefrom
enjoy-binbin:fix_sentinel_set_rewrite_test

Conversation

@enjoy-binbin
Copy link
Contributor

Change the sentinel config file to a directory in SENTINEL SET test.
So it will now fail on the rename in rewriteConfigOverwriteFile.

The test used to set the sentinel config file permissions to 000 to
simulate failure. But it fails on centos7 / freebsd / alpine. (introduced in #10151)

Other changes:

  1. More error messages after the config rewrite failure.
  2. Modify arg name force_all in rewriteConfig to force_write. (was rename in Add debug config flag to print certain config values on engine crash #9304)
  3. Fix a typo in debug quicklist-packed-threshold, then -> than. (Add support for list type to store elements larger than 4GB #9357)

Change the sentinel config file to a directory in SENTINEL SET test.
So it will now fail on the `rename` in `rewriteConfigOverwriteFile`.

The test used to set the sentinel config file permissions to `000` to
simulate failure. But it fails on centos7 / freebsd / alpine. (introduced in redis#10151)

Other changes:
1. More error messages after the config rewrite failure.
2. Modify arg name `force_all` in `rewriteConfig` to `force_write`. (was rename in redis#9304)
3. Fix a typo in debug quicklist-packed-threshold, then -> than. (redis#9357)
@enjoy-binbin
Copy link
Contributor Author

@oranagra oranagra merged commit d7fcb3c into redis:unstable Feb 4, 2022
@enjoy-binbin enjoy-binbin added the state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten label Feb 4, 2022
@enjoy-binbin enjoy-binbin deleted the fix_sentinel_set_rewrite_test branch February 4, 2022 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants