• ny0312's avatar
    Fix flaky test case for absolute TTL replication (#9069) · fb140a1b
    ny0312 authored
    The root cause is that one test (`5 keys in, 5 keys out`) is leaking a volatile key
    that can expire while another later test(`All TTL in commands are propagated
    as absolute timestamp in replication stream`) is running.
    Such leaked expiration injects an unexpected `DEL` command into the
    replication command during the later test, causing it to fail.
    
    The fixes are two fold:
    1. Plug the leak in the first test.
    2. Add FLUSHALL to the later test, to avoid future interference from other tests.
    fb140a1b
expire.c 26.2 KB