redis/tests/integration
debing.sun e750c619b2
Fix some test failures caused by key being deleted due to premature expiration (#13453)
1. Fix fuzzer test failure when the key was deleted due to expiration
before sending random traffic for the key.

After HFE, when all fields in a hash are expired, the hash might be
deleted due to expiration.

If the key was expired in the mid of `RESTORE` command and sending rand
trafic, `fuzzer` test will fail in the following code because the 'TYPE
key' will return `none` and then throw an exception because it cannot be
found in `$commands`

94b9072e44/tests/support/util.tcl (L712-L713)

This PR adds a `None` check for the reply of `KEY TYPE` command and adds
a print of `err` to avoid false positives in the future.

failed CI:
https://github.com/redis/redis/actions/runs/10127334121/job/28004985388

2. Fix the issue where key was deleted due to expiration before the
`scan.scan_key` command could execute, caused by premature enabling of
`set-active-expire`.

failed CI:
https://github.com/redis/redis/actions/runs/10153722715/job/28077610552

---------

Co-authored-by: oranagra <oran@redislabs.com>
2024-07-31 08:15:39 +08:00
..
aof-multi-part.tcl Stabilization and improvements around aof tests (#12626) 2023-10-02 08:20:53 +03:00
aof-race.tcl Stabilization and improvements around aof tests (#12626) 2023-10-02 08:20:53 +03:00
aof.tcl Fix redis-check-aof incorrectly considering data in manifest format as MP-AOF (#12958) 2024-03-12 08:47:43 +02:00
block-repl.tcl Attempt to solve MacOS CI issues in GH Actions (#12013) 2023-04-12 09:19:21 +03:00
convert-ziplist-hash-on-load.tcl Replace all usage of ziplist with listpack for t_hash (#8887) 2021-08-10 09:18:49 +03:00
convert-ziplist-zset-on-load.tcl Replace all usage of ziplist with listpack for t_zset (#9366) 2021-09-09 18:18:53 +03:00
convert-zipmap-hash-on-load.tcl Replace all usage of ziplist with listpack for t_hash (#8887) 2021-08-10 09:18:49 +03:00
corrupt-dump-fuzzer.tcl Fix some test failures caused by key being deleted due to premature expiration (#13453) 2024-07-31 08:15:39 +08:00
corrupt-dump.tcl sanitize dump payload for HFE (#13278) 2024-05-22 10:53:30 +08:00
dismiss-mem.tcl Add external test that runs without debug command (#9964) 2021-12-19 17:41:51 +02:00
failover.tcl solve race conditions in tests (#13433) 2024-07-22 10:11:56 +03:00
logging.tcl Hide user data from log (#13400) 2024-07-09 18:54:18 +08:00
psync2-master-restart.tcl HFE to support AOF and replicas (#13285) 2024-05-29 19:47:48 +08:00
psync2-pingoff.tcl Fix race condition in psync2-pingoff test (#9712) 2021-11-01 16:07:08 +02:00
psync2-reg.tcl Improve test suite to handle external servers better. (#9033) 2021-06-09 15:13:24 +03:00
psync2.tcl Tests: Do not save an RDB by default and add a SIGTERM default AOFRW test (#12064) 2023-04-18 16:14:26 +03:00
rdb.tcl HFE - Fix statistic to count also lazy expired and rename INFO params (#13372) 2024-07-02 18:22:10 +03:00
redis-benchmark.tcl redis-benchmark - add the support for binary strings (#9414) 2023-09-02 15:37:04 +03:00
redis-cli.tcl solve redis-cli test failures due to local history file (#13419) 2024-07-15 15:24:43 +03:00
replication-2.tcl Attempt to solve MacOS CI issues in GH Actions (#12013) 2023-04-12 09:19:21 +03:00
replication-3.tcl Remove EVAL script verbatim replication, propagation, and deterministic execution logic (#9812) 2021-12-21 08:32:42 +02:00
replication-4.tcl optimize spopwithcount propagation (#12082) 2023-05-22 10:27:14 +03:00
replication-buffer.tcl flushSlavesOutputBuffers should not write to replicas scheduled to drop (#12242) 2023-06-12 14:05:34 +03:00
replication-psync.tcl Attempt to solve MacOS CI issues in GH Actions (#12013) 2023-04-12 09:19:21 +03:00
replication.tcl solve races in replication lpop tests (#13445) 2024-07-25 14:06:40 +03:00
shutdown.tcl Attempt to solve MacOS CI issues in GH Actions (#12013) 2023-04-12 09:19:21 +03:00