redis/tests/integration
Binbin 699b6db0fc Fix handshake timeout replication test race (#11773)
Test on x86 + TLS fail with this error:
```
*** [err]: Slave is able to detect timeout during handshake in tests/integration/replication.tcl
Replica is not able to detect timeout
```

The replica logs is:
```

7681:S 05 Jan 2023 00:21:56.635 * Non blocking connect for SYNC fired the event.
7681:S 05 Jan 2023 00:21:56.638 * Master replied to PING, replication can continue...
7681:S 05 Jan 2023 00:21:56.638 * Trying a partial resynchronization (request ef70638885500aad12dd673c68ca1541116a59fe:1).
7681:S 05 Jan 2023 00:22:56.894 # Failed to read response from the server: error:0A000126:SSL routines::unexpected eof while reading
7681:S 05 Jan 2023 00:22:56.894 # Master did not reply to PSYNC, will try later
```

This is another issue that appeared after #11640 was merged. This PR try to fix it.
The idea is to make it stable in `wait_bgsave`, for example, it may wait until the
next psync retry in the following situation: `Master did not reply to PSYNC, will try later`

Other than that, the change will make the test more consistent / predictable since
it'll mean the master is always frozen in the desired state (waiting for repl-diskless-sync-delay
to happen, rather than earlier stages of the handshake).
2025-01-15 21:21:32 +08:00
..
aof-race.tcl TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
aof.tcl Print the number of abnormal line in AOF (#8823) 2021-05-03 22:57:00 +03:00
block-repl.tcl stabilize tests that involved with load handlers (#8967) 2021-07-21 21:06:49 +03:00
convert-zipmap-hash-on-load.tcl convert-zipmap-hash-on-load false positive fixed. 2012-03-25 11:02:16 +02:00
corrupt-dump-fuzzer.tcl corrupt-dump-fuzzer test, avoid creating junk keys (#9302) 2021-10-04 13:59:40 +03:00
corrupt-dump.tcl fix invalid read on corrupt ziplist (#9831) 2022-04-27 16:31:52 +03:00
failover.tcl stabilize tests that involved with load handlers (#8967) 2021-07-21 21:06:49 +03:00
logging.tcl Fix failed tests on Linux Alpine and add a CI job. (#8532) 2021-02-23 12:57:45 +02:00
psync2-pingoff.tcl solve race conditions in psync2-pingoff test (#8720) 2021-03-30 11:41:06 +03:00
psync2-reg.tcl fix loading race in psync2 tests 2020-04-28 09:18:01 +03:00
psync2.tcl Try to fix a race in psync2 test (#11553) 2022-12-12 17:02:54 +02:00
rdb.tcl Fix stream sanitization for non-int first value (#9553) 2021-10-04 13:59:40 +03:00
redis-benchmark.tcl Add io-thread daily CI tests. (#8232) 2021-01-17 15:48:48 +02:00
redis-cli.tcl redis-cli ASK redirect test: Add retry loop to fix timing issue (#9315) 2021-10-04 13:59:40 +03:00
replication-2.tcl solve race in replication-2 test - again (#8491) 2021-02-15 12:50:23 +02:00
replication-3.tcl add daily github actions with libc malloc and valgrind 2020-05-04 09:52:20 +03:00
replication-4.tcl add check good slaves to write when execute script (#10249) 2022-04-11 12:59:27 +03:00
replication-psync.tcl stabilize tests that involved with load handlers (#8967) 2021-07-21 21:06:49 +03:00
replication.tcl Fix handshake timeout replication test race (#11773) 2025-01-15 21:21:32 +08:00