You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When user set a new maxmemory value through config set command, engine just accept it without checking its current used memory and eviction policy. If engine has eviction turned off, this configuration change would immediately cause write outage. We could add a protection in updateMaxmemory function in config.c to reject new maxmemory value, if it is lower than usedmemory when eviction is turned off.
To reproduce
Start an engine with eviction policy noeviction.
Add 1MB data, to raise used memory to 1MB.
Set maxmemory value to 100KB using config set.
engine start to reject all write command.
Expected behavior
Engine would reject the config set command.
Additional information
The text was updated successfully, but these errors were encountered:
Yeah, this does kind of feel like intended and expected behavior. We generally only reject config commands that are malformed for some reason. Even in AWS we don't like rejecting config commands because it breaks our internal config system sometimes.
Describe the bug
When user set a new maxmemory value through config set command, engine just accept it without checking its current used memory and eviction policy. If engine has eviction turned off, this configuration change would immediately cause write outage. We could add a protection in updateMaxmemory function in config.c to reject new maxmemory value, if it is lower than usedmemory when eviction is turned off.
To reproduce
Expected behavior
Engine would reject the config set command.
Additional information
The text was updated successfully, but these errors were encountered: