Allow most CONFIG SET during loading, block some commands in async-loading#9878
Merged
oranagra merged 8 commits intoredis:unstablefrom Dec 22, 2021
oranagra:config_set_loading
Merged
Allow most CONFIG SET during loading, block some commands in async-loading#9878oranagra merged 8 commits intoredis:unstablefrom oranagra:config_set_loading
oranagra merged 8 commits intoredis:unstablefrom
oranagra:config_set_loading
Conversation
unblock MODULE HELP and MODULE LIST unblock CLUSTER sub-commands: HELP, SLOTS, NODES, INFO, MYID, LINKS, KEYSLOT, COUNTKEYSINSLOT, GETKEYSINSLOT Allow CONFIG SET, CONFIG RESETSTAT, CONFIG REWRITE
Member
Author
|
@redis/core-team please approve, see top comment for details. |
yossigo
approved these changes
Dec 20, 2021
madolson
approved these changes
Dec 21, 2021
itamarhaber
approved these changes
Dec 22, 2021
Collaborator
oranagra
added a commit
that referenced
this pull request
Dec 22, 2021
issue started failing after #9878 was merged (made an exiting test more sensitive)
oranagra
added a commit
that referenced
this pull request
Dec 22, 2021
issue started failing after #9878 was merged (made an exiting test more sensitive) looks like #9982 didn't help, tested this one and it seems to work better. this commit does two things: 1. reduce the extra delay i added earlier and instead add more keys, the effect no duration of replication is the same, but the intervals in which the server is responsive to the tcl client is higher. 2. improve the test infra to print context when assert_error fails.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
background
Till now CONFIG SET was blocked during loading.
(In the not so distant past, GET was disallowed too)
We recently (not released yet) added an async-loading mode, see #9323, and during that time it'll serve CONFIG SET and any other command.
And now we realized (#9770) that some configs, and commands are dangerous during async-loading.
changes
appendonly,repl-diskless-load, anddir)the blocked commands:
other fixes
todo