Make commandlog-request-larger-than and commandlog-reply-larger-than become SIGNED_MEMORY_CONFIG#2648
Conversation
…become memory config Signed-off-by: Binbin <binloveplay1314@qq.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #2648 +/- ##
============================================
+ Coverage 76.44% 76.55% +0.10%
============================================
Files 157 157
Lines 79035 79035
============================================
+ Hits 60421 60504 +83
+ Misses 18614 18531 -83
🚀 New features to boost your workflow:
|
|
at first I also wanted to make it as memory config, but memory config cannot be negative, so we cannot use memory config |
right, i forgot memory config can not use the negative number, but the code does not have any practical limitations? Like we can add a new xxx_CONFIG and make it support -1? It's a bit inconvenient not to be able to just use memory config for this memory bytes number. |
Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
|
Ok, it seems like folks in the monday meeting we were aligned about moving it to memory, but there some concerns about the change from |
yes, that is a problem... And we actually have the problem in the unstable branch, like if we set maxmemory to 9223372036854775808 and doing a config rewrite, we will end up a |
Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
…_memory_config Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
zuiderkwast
left a comment
There was a problem hiding this comment.
LGTM.
It's completely backward compatible, right?
Signed-off-by: Binbin <binloveplay1314@qq.com>
Yes, i think so, i tested these locally, and everything is working normally
|
|
@enjoy-binbin The faster-failover test failed in the Codecov test run. The replica is the best ranked replica in the shard, but there is another primary failure and primary rank is 1. https://github.com/valkey-io/valkey/actions/runs/24223553275/job/70719922425?pr=2648#step:6:6469 This makes the test case flaky. Can we fix it in some way? For example we can restart the test case if this happens? |
Yes, i think we can give a more chances, like we did in other tests. Let me try it. |
After #3443, we have a new
SIGNED_MEMORY_CONFIG, which enables the memoryconfiguration to support storing the value -1.
Make commandlog-request-larger-than and commandlog-reply-larger-than become
SIGNED_MEMORY_CONFIG, so we can use it in a memory way.