redis/tests/integration
Ozan Tezcan 09f8a2f374
Start AOFRW before streaming repl buffer during fullsync (#13758)
During fullsync, before loading RDB on the replica, we stop aof child to
prevent copy-on-write disaster.
Once rdb is loaded, aof is started again and it will trigger aof
rewrite. With https://github.com/redis/redis/pull/13732 , for rdbchannel
replication, this behavior was changed. Currently, we start aof after
replication buffer is streamed to db. This PR changes it back to start
aof just after rdb is loaded (before repl buffer is streamed)

Both approaches may have pros and cons. If we start aof before streaming
repl buffers, we may still face with copy-on-write issues as repl
buffers potentially include large amount of changes. If we wait until
replication buffer drained, it means we are delaying starting aof
persistence.

Additional changes are introduced as part of this PR:

- Interface change:
Added `mem_replica_full_sync_buffer` field to the `INFO MEMORY` command
reply. During full sync, it shows total memory consumed by accumulated
replication stream buffer on replica. Added same metric to `MEMORY
STATS` command reply as `replica.fullsync.buffer` field.
  
  
- Fixes: 
- Count repl stream buffer size of replica as part of 'memory overhead'
calculation for fields in "INFO MEMORY" and "MEMORY STATS" outputs.
Before this PR, repl buffer was not counted as part of memory overhead
calculation, causing misreports for fields like `used_memory_overhead`
and `used_memory_dataset` in "INFO STATS" and for `overhead.total` field
in "MEMORY STATS" command reply.
- Dismiss replication stream buffers memory of replica in the fork to
reduce COW impact during a fork.
- Fixed a few time sensitive flaky tests, deleted a noop statement,
fixed some comments and fail messages in rdbchannel tests.
2025-02-04 21:40:18 +03: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 Reply LOADING on replica while flushing the db (#13495) 2024-09-03 09:48:44 +03: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 Optimize HSCAN/ZSCAN command in case of listpack encoding: avoid the usage of intermediate list (#13531) 2024-09-13 20:36:19 +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 Clean up .rediscli_history_test temporary file (#13601) 2024-10-17 09:12:11 +08: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 Rdb channel replication (#13732) 2025-01-13 15:09:52 +03:00
replication-psync.tcl Rdb channel replication (#13732) 2025-01-13 15:09:52 +03:00
replication-rdbchannel.tcl Start AOFRW before streaming repl buffer during fullsync (#13758) 2025-02-04 21:40:18 +03:00
replication.tcl Rdb channel replication (#13732) 2025-01-13 15:09:52 +03:00
shutdown.tcl Async IO Threads (#13695) 2024-12-23 14:16:40 +08:00