• Binbin's avatar
    Fix timing issue in replication test (#11611) · ef282bd7
    Binbin authored
    There is a timing issue in the test, happens with valgrind:
    ```
    *** [err]: diskless fast replicas drop during rdb pipe in tests/integration/replication.tcl
    log message of '"*Loading DB in memory*"' not found in ./tests/tmp/server.3580.246/stdout after line: 0 till line: 39
    ```
    
    The server logs:
    ```
    43465:S 03 Dec 2022 01:26:25.664 * Trying a partial resynchronization (request 15155fa24af0539b70428f9b41f4f7129d774560:1).
    43465:S 03 Dec 2022 01:26:35.133 * Full resync from master: 8ddf5a3f7c8ca1061c6b29aa84e7c985c5b29c61:680
    ```
    
    From the logs, we can see it took almost 10s to get full resync response,
    happens with valgrind. it's extremely slow. So i guess it's just an
    insufficient wait_for_condition timeout.
    
    Set the time to 15s, and modify other similar places at the same time.
    ef282bd7
replication.tcl 59.4 KB