valkey/tests/unit
sundb a1589c3769 Re-enable hash downsize rehashing during fork (partial #12276)
This was introduced by the recent change in #11692 which prevented a
down-sizing rehashing while there is a fork.

## Solution
1. Fix the rehashing code, so that the same as it allows rehashing for up-sizing
  during fork when the ratio is extreme, it will allow it for down-sizing as well.

Co-authored-by: Oran Agra <oran@redislabs.com>

This is a partial cherry pick of:
(cherry picked from commit b00a235186)
(cherry picked from commit d4c37320382edb342292a3e30250d46896a12016)
2023-07-10 14:37:46 +03:00
..
moduleapi RM_ZsetRem: Delete key if empty (#8453) 2021-02-23 01:35:37 +02:00
type Re-enable hash downsize rehashing during fork (partial #12276) 2023-07-10 14:37:46 +03:00
acl.tcl Further improved ACL algorithm for picking categories 2021-01-12 16:25:37 +02:00
aofrw.tcl AOF: run tests with preamble off when it makes sense. 2018-03-25 13:03:38 +02:00
auth.tcl Prevent unauthenticated client from easily consuming lots of memory (CVE-2021-32675) 2021-10-04 13:59:19 +03:00
bitfield.tcl Fix BITFIELD_RO test. 2020-03-25 15:55:24 +01:00
bitops.tcl On 32 bit platform, the bit position of GETBIT/SETBIT/BITFIELD/BITCOUNT,BITPOS may overflow (see CVE-2021-32761) (#9191) 2021-07-21 21:07:02 +03:00
dump.tcl RESTORE ABSTTL won't store expired keys into the db (#7472) 2020-07-20 21:08:26 +03:00
expire.tcl fix broken PEXPIREAT test (#7791) 2020-10-27 09:12:01 +02:00
geo.tcl Revert "Geo: output 10 chars of geohash, not 11." 2019-12-18 12:54:46 +01:00
hyperloglog.tcl Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
introspection-2.tcl EXISTS should not alter LRU, OBJECT should not reveal expired keys on replica (#8016) 2021-01-12 16:25:37 +02:00
introspection.tcl Fix the bug that CLIENT REPLY OFF|SKIP cannot receive push notifications (#11875) 2023-04-17 15:54:33 +03:00
keyspace.tcl String pattern matching had exponential time complexity on pathological patterns (CVE-2022-36021) 2023-02-28 18:31:58 +02:00
latency-monitor.tcl Add a --no-latency tests flag. (#7939) 2020-10-27 09:12:01 +02:00
lazyfree.tcl Test: basic lazyfree unit test. 2015-10-09 09:47:17 +02:00
limits.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
maxmemory.tcl Improve stability of new CSC eviction test (#8160) 2021-01-12 16:25:37 +02:00
memefficiency.tcl Add a --no-latency tests flag. (#7939) 2020-10-27 09:12:01 +02:00
multi.tcl Fail EXEC command in case a watched key is expired (#9194) 2021-07-21 21:07:02 +03:00
obuf-limits.tcl Fix TLS tests on newer tcl-tls/OpenSSL. (#10910) 2023-01-17 14:59:41 +02:00
oom-score-adj.tcl Fix timing error oom-score-adj test (#8513) 2021-03-02 08:13:08 +02:00
other.tcl Disable rehash when redis has child process (#8007) 2021-01-12 16:25:37 +02:00
pendingquerybuf.tcl Slave removal: remove slave from top-level tests descriptions. 2018-09-11 15:32:28 +02:00
printver.tcl
protocol.tcl Test infra, handle RESP3 attributes and big-numbers and bools (#9235) 2021-07-21 21:07:02 +03:00
pubsub.tcl Fix the bug that CLIENT REPLY OFF|SKIP cannot receive push notifications (#11875) 2023-04-17 15:54:33 +03:00
quit.tcl Add tests for OK on QUIT 2010-10-15 12:54:53 +02:00
scan.tcl Implement SCAN cursor [TYPE type] modifier suggested in issue #6107. 2019-05-22 16:39:04 +01:00
scripting.tcl Lua cjson and cmsgpack integer overflow issues (CVE-2022-24834) 2023-07-10 14:37:46 +03:00
shutdown.tcl Fix new obuf-limits tests to work with TLS (#7848) 2020-10-27 09:12:01 +02:00
slowlog.tcl Test: fix slowlog test false positive. 2019-05-14 16:55:52 +02:00
sort.tcl Avoid integer overflows in SETRANGE and SORT (CVE-2022-35977) 2023-01-17 14:59:41 +02:00
tls.tcl Add optional tls verification (#7502) 2020-09-01 09:27:58 +03:00
tracking.tcl Fix the bug that CLIENT REPLY OFF|SKIP cannot receive push notifications (#11875) 2023-04-17 15:54:33 +03:00
violations.tcl Fix ziplist and listpack overflows and truncations (CVE-2021-32627, CVE-2021-32628) 2021-10-04 13:59:19 +03:00
wait.tcl Tests: fix redis-cli with remote hosts. (#7693) 2020-09-01 09:27:58 +03:00