Skip to content

Conversation

@enjoy-binbin
Copy link
Contributor

@enjoy-binbin enjoy-binbin commented Feb 7, 2024

The reason is the same as #13016. The reason is that in #12819,
in cron, in addition to trying to shrink, we will also tyring
to expand. The dict was expanded by cron before we trigger the
bgsave since we do have the enough keys (4096) to hit the radio.

Before the bgsave, we only add 4095 keys to avoid this issue.

The reason is the same as redis#13016. The reason is that in redis#12819,
in cron, in addition to trying to shrink, we will also tyring
to expand. The dict was expanded by cron before we trigger the
bgsave since we do have the enough keys (4096) to hit the radio.

Before the bgsave, we only add 4095 keys to avoid this issue.
Also removing local-process, don't remember we are using it.
@enjoy-binbin enjoy-binbin requested a review from oranagra February 7, 2024 02:40
@enjoy-binbin
Copy link
Contributor Author

Ci report https://github.com/redis/redis/actions/runs/7802809069/job/21281121494

*** [err]: Don't rehash if redis has child process in tests/unit/other.tcl
Expected '[Dictionary HT]
Hash table 0 stats (main hash table):
 table size: 4096
 number of elements: 289
Hash table 1 stats (rehashing target):
 table size: 8192
 number of elements: 3809
[Expires HT]
' to not match '*table size: 8192*' (context: type eval line 15 cmd {assert_no_match "*table size: 8192*" [r debug HTSTATS 9]} proc ::test)
Cleanup: may take some time... OK

@oranagra oranagra merged commit 886b117 into redis:unstable Feb 7, 2024
@enjoy-binbin enjoy-binbin deleted the fix_rehash_test branch February 7, 2024 07:20
roggervalf pushed a commit to roggervalf/redis that referenced this pull request Feb 11, 2024
The reason is the same as redis#13016. The reason is that in redis#12819,
in cron, in addition to trying to shrink, we will also tyring
to expand. The dict was expanded by cron before we trigger the
bgsave since we do have the enough keys (4096) to hit the radio.

Before the bgsave, we only add 4095 keys to avoid this issue.
funny-dog pushed a commit to funny-dog/redis that referenced this pull request Sep 17, 2025
The reason is the same as redis#13016. The reason is that in redis#12819,
in cron, in addition to trying to shrink, we will also tyring
to expand. The dict was expanded by cron before we trigger the
bgsave since we do have the enough keys (4096) to hit the radio.

Before the bgsave, we only add 4095 keys to avoid this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants