diff --git a/internal/test_helpers/fixtures/repl-wait/pass b/internal/test_helpers/fixtures/repl-wait/pass index 7def30dc..fa971a64 100644 --- a/internal/test_helpers/fixtures/repl-wait/pass +++ b/internal/test_helpers/fixtures/repl-wait/pass @@ -117,15 +117,15 @@ Debug = true [stage-7] Received bytes: "+OK\r\n" [stage-7] Received RESP value: "OK" [stage-7] Received "OK" -[stage-7] Received OK at 22:15:47.010 -[stage-7] Fetching key "pineapple" at 22:15:47.010 (should not be expired) +[stage-7] Received OK at 13:55:55.871 +[stage-7] Fetching key "pineapple" at 13:55:55.871 (should not be expired) [stage-7] $ redis-cli get pineapple [stage-7] Sent bytes: "*2\r\n$3\r\nget\r\n$9\r\npineapple\r\n" [stage-7] Received bytes: "$5\r\ngrape\r\n" [stage-7] Received RESP value: "grape" [stage-7] Received "grape" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "pineapple" at 22:15:47.113 (should be expired) +[stage-7] Fetching key "pineapple" at 13:55:55.974 (should be expired) [stage-7] $ redis-cli get pineapple [stage-7] Sent bytes: "*2\r\n$3\r\nget\r\n$9\r\npineapple\r\n" [stage-7] Received bytes: "$-1\r\n" @@ -136,19 +136,19 @@ Debug = true [stage-7] Program terminated successfully [stage-8] Running tests for Stage #8: rdb-config -[stage-8] $ ./spawn_redis_server.sh --dir /private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles3508336326 --dbfilename banana.rdb +[stage-8] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2678139548 --dbfilename banana.rdb [stage-8] $ redis-cli config get dir [stage-8] Sent bytes: "*3\r\n$6\r\nconfig\r\n$3\r\nget\r\n$3\r\ndir\r\n" -[stage-8] Received bytes: "*2\r\n$3\r\ndir\r\n$75\r\n/private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles3508336326\r\n" -[stage-8] Received RESP value: ["dir", "/private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles3508336326"] -[stage-8] Received ["dir", "/private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles3508336326"] +[stage-8] Received bytes: "*2\r\n$3\r\ndir\r\n$75\r\n/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2678139548\r\n" +[stage-8] Received RESP value: ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2678139548"] +[stage-8] Received ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2678139548"] [stage-8] Test passed. [stage-8] Terminating program [stage-8] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm' [stage-9] Running tests for Stage #9: rdb-read-key [stage-9] Created RDB file with single key: "orange" -[stage-9] $ ./spawn_redis_server.sh --dir /private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles1473807766 --dbfilename pineapple.rdb +[stage-9] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles585145031 --dbfilename pineapple.rdb [stage-9] $ redis-cli KEYS * [stage-9] Test passed. [stage-9] Terminating program @@ -156,7 +156,7 @@ Debug = true [stage-10] Running tests for Stage #10: rdb-read-string-value [stage-10] Created RDB file with single key-value pair: blueberry="orange" -[stage-10] $ ./spawn_redis_server.sh --dir /private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles120304331 --dbfilename pear.rdb +[stage-10] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1688253054 --dbfilename pear.rdb [stage-10] $ redis-cli GET blueberry [stage-10] Test passed. [stage-10] Terminating program @@ -164,7 +164,7 @@ Debug = true [stage-11] Running tests for Stage #11: rdb-read-multiple-keys [stage-11] Created RDB file with 4 keys: ["grape" "pear" "strawberry" "banana"] -[stage-11] $ ./spawn_redis_server.sh --dir /private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles1980839995 --dbfilename pineapple.rdb +[stage-11] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1357811428 --dbfilename pineapple.rdb [stage-11] $ redis-cli KEYS * [stage-11] Test passed. [stage-11] Terminating program @@ -172,7 +172,7 @@ Debug = true [stage-12] Running tests for Stage #12: rdb-read-multiple-string-values [stage-12] Created RDB file with key-value pairs: "grape"="raspberry", "pineapple"="mango", "mango"="blueberry" -[stage-12] $ ./spawn_redis_server.sh --dir /private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles4037718428 --dbfilename pineapple.rdb +[stage-12] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3793819334 --dbfilename pineapple.rdb [stage-12] $ redis-cli GET grape [stage-12] $ redis-cli GET pineapple [stage-12] $ redis-cli GET mango @@ -181,7 +181,7 @@ Debug = true [stage-12] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm' [stage-13] Running tests for Stage #13: rdb-read-value-with-expiry -[stage-13] $ ./spawn_redis_server.sh --dir /private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles378968894 --dbfilename banana.rdb +[stage-13] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1371732070 --dbfilename banana.rdb [stage-13] $ redis-cli GET strawberry [stage-13] $ redis-cli GET pear [stage-13] $ redis-cli GET raspberry @@ -202,9 +202,9 @@ Debug = true [stage-15] $ ./spawn_redis_server.sh [stage-15] client: $ redis-cli INFO replication [stage-15] client: Sent bytes: "*2\r\n$4\r\nINFO\r\n$11\r\nreplication\r\n" -[stage-15] client: Received bytes: "$349\r\n# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:c5889c60a7ef0bf77aaf492bb66bf666c41498f0\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n\r\n" -[stage-15] client: Received RESP value: "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:c5889c60a7ef0bf77aaf492bb66bf666c41498f0\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" -[stage-15] Received "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:c5889c60a7ef0bf77aaf492bb66bf666c41498f0\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" +[stage-15] client: Received bytes: "$349\r\n# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:292da9fda9427a929a1227ab623c0e12d48734c9\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n\r\n" +[stage-15] client: Received RESP value: "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:292da9fda9427a929a1227ab623c0e12d48734c9\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" +[stage-15] Received "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:292da9fda9427a929a1227ab623c0e12d48734c9\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" [stage-15] Found role:master in response. [stage-15] Test passed. [stage-15] Terminating program @@ -244,9 +244,9 @@ Debug = true [stage-17] $ ./spawn_redis_server.sh [stage-17] client: $ redis-cli INFO replication [stage-17] client: Sent bytes: "*2\r\n$4\r\nINFO\r\n$11\r\nreplication\r\n" -[stage-17] client: Received bytes: "$349\r\n# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:a1597a29690d7d0544d0cf9b4749e57859f8b08a\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n\r\n" -[stage-17] client: Received RESP value: "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:a1597a29690d7d0544d0cf9b4749e57859f8b08a\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" -[stage-17] Received "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:a1597a29690d7d0544d0cf9b4749e57859f8b08a\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" +[stage-17] client: Received bytes: "$349\r\n# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:fd5b35c22591c3de6db01df07a5139e675fdaea4\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n\r\n" +[stage-17] client: Received RESP value: "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:fd5b35c22591c3de6db01df07a5139e675fdaea4\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" +[stage-17] Received "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:fd5b35c22591c3de6db01df07a5139e675fdaea4\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" [stage-17] Found master_replid:xxx in response. [stage-17] Found master_reploffset:0 in response. [stage-17] Test passed. @@ -354,9 +354,9 @@ Debug = true [stage-22] Received "OK" [stage-22] client: $ redis-cli PSYNC ? -1 [stage-22] client: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-22] client: Received bytes: "+FULLRESYNC e77debebca6dab5fe60e22941eece7753a0ce349 0\r\n" -[stage-22] client: Received RESP value: "FULLRESYNC e77debebca6dab5fe60e22941eece7753a0ce349 0" -[stage-22] Received "FULLRESYNC e77debebca6dab5fe60e22941eece7753a0ce349 0" +[stage-22] client: Received bytes: "+FULLRESYNC d21657e07376c3fc1233ac32b34d30eafab02b16 0\r\n" +[stage-22] client: Received RESP value: "FULLRESYNC d21657e07376c3fc1233ac32b34d30eafab02b16 0" +[stage-22] Received "FULLRESYNC d21657e07376c3fc1233ac32b34d30eafab02b16 0" [stage-22] Test passed. [stage-22] Terminating program [stage-22] Program terminated successfully @@ -380,11 +380,11 @@ Debug = true [stage-23] Received "OK" [stage-23] client: $ redis-cli PSYNC ? -1 [stage-23] client: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-23] client: Received bytes: "+FULLRESYNC b28ecb2ab0ce21dc45adfdd88c0d76be0432d193 0\r\n" -[stage-23] client: Received RESP value: "FULLRESYNC b28ecb2ab0ce21dc45adfdd88c0d76be0432d193 0" -[stage-23] Received "FULLRESYNC b28ecb2ab0ce21dc45adfdd88c0d76be0432d193 0" +[stage-23] client: Received bytes: "+FULLRESYNC b08c11fa7eb56c6901de64406a7ebfa84ca58e00 0\r\n" +[stage-23] client: Received RESP value: "FULLRESYNC b08c11fa7eb56c6901de64406a7ebfa84ca58e00 0" +[stage-23] Received "FULLRESYNC b08c11fa7eb56c6901de64406a7ebfa84ca58e00 0" [stage-23] Reading RDB file... -[stage-23] client: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0093^\x14f\xfa\bused-mem\xc2@\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b28ecb2ab0ce21dc45adfdd88c0d76be0432d193\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x9f\x12Β\x9b\xf1\xf6\x8c" +[stage-23] client: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\"M\x16f\xfa\bused-mem\xc2\x10\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b08c11fa7eb56c6901de64406a7ebfa84ca58e00\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xc3.\x84\x8d\xb7\xbc>\x8e" [stage-23] Received RDB file [stage-23] Test passed. [stage-23] Terminating program @@ -409,11 +409,11 @@ Debug = true [stage-24] Received "OK" [stage-24] replica: $ redis-cli PSYNC ? -1 [stage-24] replica: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-24] replica: Received bytes: "+FULLRESYNC 4ff4040882ebd19038933138bc70d6c86d5f4f46 0\r\n" -[stage-24] replica: Received RESP value: "FULLRESYNC 4ff4040882ebd19038933138bc70d6c86d5f4f46 0" -[stage-24] Received "FULLRESYNC 4ff4040882ebd19038933138bc70d6c86d5f4f46 0" +[stage-24] replica: Received bytes: "+FULLRESYNC c6393ff3a9c58125cbb3ab412800b6917d77e8e6 0\r\n" +[stage-24] replica: Received RESP value: "FULLRESYNC c6393ff3a9c58125cbb3ab412800b6917d77e8e6 0" +[stage-24] Received "FULLRESYNC c6393ff3a9c58125cbb3ab412800b6917d77e8e6 0" [stage-24] Reading RDB file... -[stage-24] replica: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0093^\x14f\xfa\bused-mem\xc2pS\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(4ff4040882ebd19038933138bc70d6c86d5f4f46\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xfa\xe4\x9fW\x86\xf8\x8a\xc9" +[stage-24] replica: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2#M\x16f\xfa\bused-mem\xc2`S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(c6393ff3a9c58125cbb3ab412800b6917d77e8e6\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x963\x1d\x1fad\x01\xee" [stage-24] Received RDB file [stage-24] client: $ redis-cli SET foo 123 [stage-24] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -469,11 +469,11 @@ Debug = true [stage-25] Received "OK" [stage-25] replica-1: $ redis-cli PSYNC ? -1 [stage-25] replica-1: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-25] replica-1: Received bytes: "+FULLRESYNC 2ab0785a0e607ee54c211af80bd41dcfa804ad17 0\r\n" -[stage-25] replica-1: Received RESP value: "FULLRESYNC 2ab0785a0e607ee54c211af80bd41dcfa804ad17 0" -[stage-25] Received "FULLRESYNC 2ab0785a0e607ee54c211af80bd41dcfa804ad17 0" +[stage-25] replica-1: Received bytes: "+FULLRESYNC d3aa898d257c597663fd54e226eebc80feaa6fd8 0\r\n" +[stage-25] replica-1: Received RESP value: "FULLRESYNC d3aa898d257c597663fd54e226eebc80feaa6fd8 0" +[stage-25] Received "FULLRESYNC d3aa898d257c597663fd54e226eebc80feaa6fd8 0" [stage-25] Reading RDB file... -[stage-25] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0094^\x14f\xfa\bused-mem\xc2PS\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(2ab0785a0e607ee54c211af80bd41dcfa804ad17\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xf3\xf5IGQ\xf2\xb5>" +[stage-25] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2#M\x16f\xfa\bused-mem\u0080S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d3aa898d257c597663fd54e226eebc80feaa6fd8\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x80O%\t?\xd2\xe8\x80" [stage-25] Received RDB file [stage-25] Creating replica: 2 [stage-25] replica-2: $ redis-cli PING @@ -493,11 +493,11 @@ Debug = true [stage-25] Received "OK" [stage-25] replica-2: $ redis-cli PSYNC ? -1 [stage-25] replica-2: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-25] replica-2: Received bytes: "+FULLRESYNC 2ab0785a0e607ee54c211af80bd41dcfa804ad17 0\r\n" -[stage-25] replica-2: Received RESP value: "FULLRESYNC 2ab0785a0e607ee54c211af80bd41dcfa804ad17 0" -[stage-25] Received "FULLRESYNC 2ab0785a0e607ee54c211af80bd41dcfa804ad17 0" +[stage-25] replica-2: Received bytes: "+FULLRESYNC d3aa898d257c597663fd54e226eebc80feaa6fd8 0\r\n" +[stage-25] replica-2: Received RESP value: "FULLRESYNC d3aa898d257c597663fd54e226eebc80feaa6fd8 0" +[stage-25] Received "FULLRESYNC d3aa898d257c597663fd54e226eebc80feaa6fd8 0" [stage-25] Reading RDB file... -[stage-25] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0094^\x14f\xfa\bused-mem\xc2\xc0:\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(2ab0785a0e607ee54c211af80bd41dcfa804ad17\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff2\xf3/\x9c\x8f\x1cX]" +[stage-25] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2#M\x16f\xfa\bused-mem\xc2\xf0:\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d3aa898d257c597663fd54e226eebc80feaa6fd8\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff}\x82\x1dX\xdf$\u038b" [stage-25] Received RDB file [stage-25] Creating replica: 3 [stage-25] replica-3: $ redis-cli PING @@ -517,11 +517,11 @@ Debug = true [stage-25] Received "OK" [stage-25] replica-3: $ redis-cli PSYNC ? -1 [stage-25] replica-3: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-25] replica-3: Received bytes: "+FULLRESYNC 2ab0785a0e607ee54c211af80bd41dcfa804ad17 0\r\n" -[stage-25] replica-3: Received RESP value: "FULLRESYNC 2ab0785a0e607ee54c211af80bd41dcfa804ad17 0" -[stage-25] Received "FULLRESYNC 2ab0785a0e607ee54c211af80bd41dcfa804ad17 0" +[stage-25] replica-3: Received bytes: "+FULLRESYNC d3aa898d257c597663fd54e226eebc80feaa6fd8 0\r\n" +[stage-25] replica-3: Received RESP value: "FULLRESYNC d3aa898d257c597663fd54e226eebc80feaa6fd8 0" +[stage-25] Received "FULLRESYNC d3aa898d257c597663fd54e226eebc80feaa6fd8 0" [stage-25] Reading RDB file... -[stage-25] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0094^\x14f\xfa\bused-mem\xc2\xd0I\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(2ab0785a0e607ee54c211af80bd41dcfa804ad17\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xfff\x92\xe4\x7f\xe9\x14RO" +[stage-25] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2#M\x16f\xfa\bused-mem\xc2\x00J\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d3aa898d257c597663fd54e226eebc80feaa6fd8\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff!ɒ\xb6A\xc7V\x8b" [stage-25] Received RDB file [stage-25] client: $ redis-cli SET foo 123 [stage-25] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -750,11 +750,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-1: $ redis-cli PSYNC ? -1 [stage-30] replica-1: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-30] replica-1: Received bytes: "+FULLRESYNC bd3ce4baa33bff0044c28528631bc0df8de0b091 0\r\n" -[stage-30] replica-1: Received RESP value: "FULLRESYNC bd3ce4baa33bff0044c28528631bc0df8de0b091 0" -[stage-30] Received "FULLRESYNC bd3ce4baa33bff0044c28528631bc0df8de0b091 0" +[stage-30] replica-1: Received bytes: "+FULLRESYNC dfcc7eb74474d468c69d45db1cb5dbbaca770241 0\r\n" +[stage-30] replica-1: Received RESP value: "FULLRESYNC dfcc7eb74474d468c69d45db1cb5dbbaca770241 0" +[stage-30] Received "FULLRESYNC dfcc7eb74474d468c69d45db1cb5dbbaca770241 0" [stage-30] Reading RDB file... -[stage-30] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0095^\x14f\xfa\bused-mem\xc2`\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(bd3ce4baa33bff0044c28528631bc0df8de0b091\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffȨA?\x89)\xafB" +[stage-30] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2$M\x16f\xfa\bused-mem\xc2P\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(dfcc7eb74474d468c69d45db1cb5dbbaca770241\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff](\xdb稃6n" [stage-30] Received RDB file [stage-30] Creating replica: 2 [stage-30] replica-2: $ redis-cli PING @@ -774,11 +774,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-2: $ redis-cli PSYNC ? -1 [stage-30] replica-2: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-30] replica-2: Received bytes: "+FULLRESYNC bd3ce4baa33bff0044c28528631bc0df8de0b091 0\r\n" -[stage-30] replica-2: Received RESP value: "FULLRESYNC bd3ce4baa33bff0044c28528631bc0df8de0b091 0" -[stage-30] Received "FULLRESYNC bd3ce4baa33bff0044c28528631bc0df8de0b091 0" +[stage-30] replica-2: Received bytes: "+FULLRESYNC dfcc7eb74474d468c69d45db1cb5dbbaca770241 0\r\n" +[stage-30] replica-2: Received RESP value: "FULLRESYNC dfcc7eb74474d468c69d45db1cb5dbbaca770241 0" +[stage-30] Received "FULLRESYNC dfcc7eb74474d468c69d45db1cb5dbbaca770241 0" [stage-30] Reading RDB file... -[stage-30] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0095^\x14f\xfa\bused-mem\xc2\xf0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(bd3ce4baa33bff0044c28528631bc0df8de0b091\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xf2(~D )\x86m" +[stage-30] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2$M\x16f\xfa\bused-mem\xc2\xe0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(dfcc7eb74474d468c69d45db1cb5dbbaca770241\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x16\xdb|\xb7\xce\xe7B7" [stage-30] Received RDB file [stage-30] Creating replica: 3 [stage-30] replica-3: $ redis-cli PING @@ -798,11 +798,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-3: $ redis-cli PSYNC ? -1 [stage-30] replica-3: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-30] replica-3: Received bytes: "+FULLRESYNC bd3ce4baa33bff0044c28528631bc0df8de0b091 0\r\n" -[stage-30] replica-3: Received RESP value: "FULLRESYNC bd3ce4baa33bff0044c28528631bc0df8de0b091 0" -[stage-30] Received "FULLRESYNC bd3ce4baa33bff0044c28528631bc0df8de0b091 0" +[stage-30] replica-3: Received bytes: "+FULLRESYNC dfcc7eb74474d468c69d45db1cb5dbbaca770241 0\r\n" +[stage-30] replica-3: Received RESP value: "FULLRESYNC dfcc7eb74474d468c69d45db1cb5dbbaca770241 0" +[stage-30] Received "FULLRESYNC dfcc7eb74474d468c69d45db1cb5dbbaca770241 0" [stage-30] Reading RDB file... -[stage-30] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0095^\x14f\xfa\bused-mem\xc2\xf0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(bd3ce4baa33bff0044c28528631bc0df8de0b091\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xca\x0f\xe6\f\xc9\xe6\x11C" +[stage-30] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2$M\x16f\xfa\bused-mem\xc2\xe0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(dfcc7eb74474d468c69d45db1cb5dbbaca770241\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff.\xfc\xe4\xff'(\xd5\x19" [stage-30] Received RDB file [stage-30] Creating replica: 4 [stage-30] replica-4: $ redis-cli PING @@ -822,11 +822,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-4: $ redis-cli PSYNC ? -1 [stage-30] replica-4: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-30] replica-4: Received bytes: "+FULLRESYNC bd3ce4baa33bff0044c28528631bc0df8de0b091 0\r\n" -[stage-30] replica-4: Received RESP value: "FULLRESYNC bd3ce4baa33bff0044c28528631bc0df8de0b091 0" -[stage-30] Received "FULLRESYNC bd3ce4baa33bff0044c28528631bc0df8de0b091 0" +[stage-30] replica-4: Received bytes: "+FULLRESYNC dfcc7eb74474d468c69d45db1cb5dbbaca770241 0\r\n" +[stage-30] replica-4: Received RESP value: "FULLRESYNC dfcc7eb74474d468c69d45db1cb5dbbaca770241 0" +[stage-30] Received "FULLRESYNC dfcc7eb74474d468c69d45db1cb5dbbaca770241 0" [stage-30] Reading RDB file... -[stage-30] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0095^\x14f\xfa\bused-mem\xc2\x00\x8c\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(bd3ce4baa33bff0044c28528631bc0df8de0b091\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffo\x1dwJ\xe0/|\xb8" +[stage-30] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2$M\x16f\xfa\bused-mem\xc2\xf0\x8b\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(dfcc7eb74474d468c69d45db1cb5dbbaca770241\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xea\xc9e\x881R\xc0\xb1" [stage-30] Received RDB file [stage-30] client: $ redis-cli WAIT 3 500 [stage-30] client: Sent bytes: "*3\r\n$4\r\nWAIT\r\n$1\r\n3\r\n$3\r\n500\r\n" @@ -873,11 +873,11 @@ Debug = true [stage-31] Received "OK" [stage-31] replica-1: $ redis-cli PSYNC ? -1 [stage-31] replica-1: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-31] replica-1: Received bytes: "+FULLRESYNC a779f42ba9b8169c7a5130bf90b1f47406070a49 0\r\n" -[stage-31] replica-1: Received RESP value: "FULLRESYNC a779f42ba9b8169c7a5130bf90b1f47406070a49 0" -[stage-31] Received "FULLRESYNC a779f42ba9b8169c7a5130bf90b1f47406070a49 0" +[stage-31] replica-1: Received bytes: "+FULLRESYNC 2dce4d8a4bf1d9e60a54f439814c48003269be8c 0\r\n" +[stage-31] replica-1: Received RESP value: "FULLRESYNC 2dce4d8a4bf1d9e60a54f439814c48003269be8c 0" +[stage-31] Received "FULLRESYNC 2dce4d8a4bf1d9e60a54f439814c48003269be8c 0" [stage-31] Reading RDB file... -[stage-31] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0097^\x14f\xfa\bused-mem\xc2@\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(a779f42ba9b8169c7a5130bf90b1f47406070a49\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa3\xf4Q\xaf\x8f\x96h\x17" +[stage-31] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2&M\x16f\xfa\bused-mem\xc2P\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(2dce4d8a4bf1d9e60a54f439814c48003269be8c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff1\xaa\x81y\x83\xbbն" [stage-31] Received RDB file [stage-31] Creating replica: 2 [stage-31] replica-2: $ redis-cli PING @@ -897,11 +897,11 @@ Debug = true [stage-31] Received "OK" [stage-31] replica-2: $ redis-cli PSYNC ? -1 [stage-31] replica-2: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-31] replica-2: Received bytes: "+FULLRESYNC a779f42ba9b8169c7a5130bf90b1f47406070a49 0\r\n" -[stage-31] replica-2: Received RESP value: "FULLRESYNC a779f42ba9b8169c7a5130bf90b1f47406070a49 0" -[stage-31] Received "FULLRESYNC a779f42ba9b8169c7a5130bf90b1f47406070a49 0" +[stage-31] replica-2: Received bytes: "+FULLRESYNC 2dce4d8a4bf1d9e60a54f439814c48003269be8c 0\r\n" +[stage-31] replica-2: Received RESP value: "FULLRESYNC 2dce4d8a4bf1d9e60a54f439814c48003269be8c 0" +[stage-31] Received "FULLRESYNC 2dce4d8a4bf1d9e60a54f439814c48003269be8c 0" [stage-31] Reading RDB file... -[stage-31] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0097^\x14f\xfa\bused-mem\xc2\xd0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(a779f42ba9b8169c7a5130bf90b1f47406070a49\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x99tn\xd4&\x96A8" +[stage-31] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2&M\x16f\xfa\bused-mem\xc2\xe0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(2dce4d8a4bf1d9e60a54f439814c48003269be8c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffzY&)\xe5ߡ\xef" [stage-31] Received RDB file [stage-31] Creating replica: 3 [stage-31] replica-3: $ redis-cli PING @@ -921,11 +921,11 @@ Debug = true [stage-31] Received "OK" [stage-31] replica-3: $ redis-cli PSYNC ? -1 [stage-31] replica-3: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-31] replica-3: Received bytes: "+FULLRESYNC a779f42ba9b8169c7a5130bf90b1f47406070a49 0\r\n" -[stage-31] replica-3: Received RESP value: "FULLRESYNC a779f42ba9b8169c7a5130bf90b1f47406070a49 0" -[stage-31] Received "FULLRESYNC a779f42ba9b8169c7a5130bf90b1f47406070a49 0" +[stage-31] replica-3: Received bytes: "+FULLRESYNC 2dce4d8a4bf1d9e60a54f439814c48003269be8c 0\r\n" +[stage-31] replica-3: Received RESP value: "FULLRESYNC 2dce4d8a4bf1d9e60a54f439814c48003269be8c 0" +[stage-31] Received "FULLRESYNC 2dce4d8a4bf1d9e60a54f439814c48003269be8c 0" [stage-31] Reading RDB file... -[stage-31] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0097^\x14f\xfa\bused-mem\xc2\xd0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(a779f42ba9b8169c7a5130bf90b1f47406070a49\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa1S\xf6\x9c\xcfY\xd6\x16" +[stage-31] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2&M\x16f\xfa\bused-mem\xc2\xe0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(2dce4d8a4bf1d9e60a54f439814c48003269be8c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffB~\xbea\f\x106\xc1" [stage-31] Received RDB file [stage-31] Creating replica: 4 [stage-31] replica-4: $ redis-cli PING @@ -945,11 +945,11 @@ Debug = true [stage-31] Received "OK" [stage-31] replica-4: $ redis-cli PSYNC ? -1 [stage-31] replica-4: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-31] replica-4: Received bytes: "+FULLRESYNC a779f42ba9b8169c7a5130bf90b1f47406070a49 0\r\n" -[stage-31] replica-4: Received RESP value: "FULLRESYNC a779f42ba9b8169c7a5130bf90b1f47406070a49 0" -[stage-31] Received "FULLRESYNC a779f42ba9b8169c7a5130bf90b1f47406070a49 0" +[stage-31] replica-4: Received bytes: "+FULLRESYNC 2dce4d8a4bf1d9e60a54f439814c48003269be8c 0\r\n" +[stage-31] replica-4: Received RESP value: "FULLRESYNC 2dce4d8a4bf1d9e60a54f439814c48003269be8c 0" +[stage-31] Received "FULLRESYNC 2dce4d8a4bf1d9e60a54f439814c48003269be8c 0" [stage-31] Reading RDB file... -[stage-31] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u0097^\x14f\xfa\bused-mem\xc2\xe0\x8b\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(a779f42ba9b8169c7a5130bf90b1f47406070a49\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x14\x15\xef\xc0\x16G\x9e\xc8" +[stage-31] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2&M\x16f\xfa\bused-mem\xc2\xf0\x8b\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(2dce4d8a4bf1d9e60a54f439814c48003269be8c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x86K?\x16\x1aj#i" [stage-31] Received RDB file [stage-31] client: $ redis-cli SET foo 123 [stage-31] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -967,8 +967,8 @@ Debug = true [stage-31] replica-1: Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n" [stage-31] replica-1: Received RESP value: ["REPLCONF", "GETACK", "*"] [stage-31] Received ["REPLCONF", "GETACK", "*"] -[stage-31] replica-1: $ redis-cli REPLCONF ACK 304 -[stage-31] replica-1: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n304\r\n" +[stage-31] replica-1: $ redis-cli REPLCONF ACK 54 +[stage-31] replica-1: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$2\r\n54\r\n" [stage-31] Testing Replica : 2 [stage-31] replica-2: Received bytes: "*2\r\n$6\r\nSELECT\r\n$1\r\n0\r\n" [stage-31] replica-2: Received RESP value: ["SELECT", "0"] @@ -1013,8 +1013,8 @@ Debug = true [stage-31] replica-1: Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n" [stage-31] replica-1: Received RESP value: ["REPLCONF", "GETACK", "*"] [stage-31] Received ["REPLCONF", "GETACK", "*"] -[stage-31] replica-1: $ redis-cli REPLCONF ACK 372 -[stage-31] replica-1: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n372\r\n" +[stage-31] replica-1: $ redis-cli REPLCONF ACK 122 +[stage-31] replica-1: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n122\r\n" [stage-31] Testing Replica : 2 [stage-31] replica-2: Received bytes: "*3\r\n$3\r\nSET\r\n$3\r\nbaz\r\n$3\r\n789\r\n" [stage-31] replica-2: Received RESP value: ["SET", "baz", "789"] @@ -1022,8 +1022,8 @@ Debug = true [stage-31] replica-2: Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n" [stage-31] replica-2: Received RESP value: ["REPLCONF", "GETACK", "*"] [stage-31] Received ["REPLCONF", "GETACK", "*"] -[stage-31] replica-2: $ redis-cli REPLCONF ACK 372 -[stage-31] replica-2: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n372\r\n" +[stage-31] replica-2: $ redis-cli REPLCONF ACK 122 +[stage-31] replica-2: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n122\r\n" [stage-31] Testing Replica : 3 [stage-31] replica-3: Received bytes: "*3\r\n$3\r\nSET\r\n$3\r\nbaz\r\n$3\r\n789\r\n" [stage-31] replica-3: Received RESP value: ["SET", "baz", "789"] @@ -1031,8 +1031,8 @@ Debug = true [stage-31] replica-3: Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n" [stage-31] replica-3: Received RESP value: ["REPLCONF", "GETACK", "*"] [stage-31] Received ["REPLCONF", "GETACK", "*"] -[stage-31] replica-3: $ redis-cli REPLCONF ACK 372 -[stage-31] replica-3: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n372\r\n" +[stage-31] replica-3: $ redis-cli REPLCONF ACK 122 +[stage-31] replica-3: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n122\r\n" [stage-31] Testing Replica : 4 [stage-31] replica-4: Received bytes: "*3\r\n$3\r\nSET\r\n$3\r\nbaz\r\n$3\r\n789\r\n" [stage-31] replica-4: Received RESP value: ["SET", "baz", "789"] @@ -1042,7 +1042,7 @@ Debug = true [stage-31] Received ["REPLCONF", "GETACK", "*"] [stage-31] client: Received bytes: ":3\r\n" [stage-31] client: Received RESP value: 3 -[stage-31] WAIT command returned after 2099 ms +[stage-31] WAIT command returned after 2098 ms [stage-31] Test passed. [stage-31] Terminating program [stage-31] Program terminated successfully diff --git a/internal/test_helpers/fixtures/streams/pass b/internal/test_helpers/fixtures/streams/pass index 77006dde..2e3c83d0 100644 --- a/internal/test_helpers/fixtures/streams/pass +++ b/internal/test_helpers/fixtures/streams/pass @@ -117,15 +117,15 @@ Debug = true [stage-7] Received bytes: "+OK\r\n" [stage-7] Received RESP value: "OK" [stage-7] Received "OK" -[stage-7] Received OK at 22:16:12.649 -[stage-7] Fetching key "pineapple" at 22:16:12.649 (should not be expired) +[stage-7] Received OK at 13:56:39.529 +[stage-7] Fetching key "pineapple" at 13:56:39.529 (should not be expired) [stage-7] $ redis-cli get pineapple [stage-7] Sent bytes: "*2\r\n$3\r\nget\r\n$9\r\npineapple\r\n" [stage-7] Received bytes: "$5\r\ngrape\r\n" [stage-7] Received RESP value: "grape" [stage-7] Received "grape" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "pineapple" at 22:16:12.752 (should be expired) +[stage-7] Fetching key "pineapple" at 13:56:39.632 (should be expired) [stage-7] $ redis-cli get pineapple [stage-7] Sent bytes: "*2\r\n$3\r\nget\r\n$9\r\npineapple\r\n" [stage-7] Received bytes: "$-1\r\n" @@ -136,19 +136,19 @@ Debug = true [stage-7] Program terminated successfully [stage-8] Running tests for Stage #8: rdb-config -[stage-8] $ ./spawn_redis_server.sh --dir /private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles3659240720 --dbfilename banana.rdb +[stage-8] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles633806368 --dbfilename banana.rdb [stage-8] $ redis-cli config get dir [stage-8] Sent bytes: "*3\r\n$6\r\nconfig\r\n$3\r\nget\r\n$3\r\ndir\r\n" -[stage-8] Received bytes: "*2\r\n$3\r\ndir\r\n$75\r\n/private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles3659240720\r\n" -[stage-8] Received RESP value: ["dir", "/private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles3659240720"] -[stage-8] Received ["dir", "/private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles3659240720"] +[stage-8] Received bytes: "*2\r\n$3\r\ndir\r\n$74\r\n/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles633806368\r\n" +[stage-8] Received RESP value: ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles633806368"] +[stage-8] Received ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles633806368"] [stage-8] Test passed. [stage-8] Terminating program [stage-8] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm' [stage-9] Running tests for Stage #9: rdb-read-key [stage-9] Created RDB file with single key: "orange" -[stage-9] $ ./spawn_redis_server.sh --dir /private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles1791821092 --dbfilename pineapple.rdb +[stage-9] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2952634775 --dbfilename pineapple.rdb [stage-9] $ redis-cli KEYS * [stage-9] Test passed. [stage-9] Terminating program @@ -156,7 +156,7 @@ Debug = true [stage-10] Running tests for Stage #10: rdb-read-string-value [stage-10] Created RDB file with single key-value pair: blueberry="orange" -[stage-10] $ ./spawn_redis_server.sh --dir /private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles1808846280 --dbfilename pear.rdb +[stage-10] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3645067212 --dbfilename pear.rdb [stage-10] $ redis-cli GET blueberry [stage-10] Test passed. [stage-10] Terminating program @@ -164,7 +164,7 @@ Debug = true [stage-11] Running tests for Stage #11: rdb-read-multiple-keys [stage-11] Created RDB file with 4 keys: ["grape" "pear" "strawberry" "banana"] -[stage-11] $ ./spawn_redis_server.sh --dir /private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles1019128438 --dbfilename pineapple.rdb +[stage-11] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1213565538 --dbfilename pineapple.rdb [stage-11] $ redis-cli KEYS * [stage-11] Test passed. [stage-11] Terminating program @@ -172,7 +172,7 @@ Debug = true [stage-12] Running tests for Stage #12: rdb-read-multiple-string-values [stage-12] Created RDB file with key-value pairs: "grape"="raspberry", "pineapple"="mango", "mango"="blueberry" -[stage-12] $ ./spawn_redis_server.sh --dir /private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles106729023 --dbfilename pineapple.rdb +[stage-12] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1087374992 --dbfilename pineapple.rdb [stage-12] $ redis-cli GET grape [stage-12] $ redis-cli GET pineapple [stage-12] $ redis-cli GET mango @@ -181,7 +181,7 @@ Debug = true [stage-12] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm' [stage-13] Running tests for Stage #13: rdb-read-value-with-expiry -[stage-13] $ ./spawn_redis_server.sh --dir /private/var/folders/f1/bs24_53x44j26flrfvyg416m0000gn/T/rdbfiles1583110213 --dbfilename banana.rdb +[stage-13] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles573547725 --dbfilename banana.rdb [stage-13] $ redis-cli GET strawberry [stage-13] $ redis-cli GET pear [stage-13] $ redis-cli GET raspberry @@ -202,9 +202,9 @@ Debug = true [stage-15] $ ./spawn_redis_server.sh [stage-15] client: $ redis-cli INFO replication [stage-15] client: Sent bytes: "*2\r\n$4\r\nINFO\r\n$11\r\nreplication\r\n" -[stage-15] client: Received bytes: "$349\r\n# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:d018552a993aaac26f457db3071d54924db7deb6\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n\r\n" -[stage-15] client: Received RESP value: "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:d018552a993aaac26f457db3071d54924db7deb6\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" -[stage-15] Received "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:d018552a993aaac26f457db3071d54924db7deb6\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" +[stage-15] client: Received bytes: "$349\r\n# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:ab2f1583edbd7d3da92c8893fc9de39705b1c683\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n\r\n" +[stage-15] client: Received RESP value: "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:ab2f1583edbd7d3da92c8893fc9de39705b1c683\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" +[stage-15] Received "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:ab2f1583edbd7d3da92c8893fc9de39705b1c683\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" [stage-15] Found role:master in response. [stage-15] Test passed. [stage-15] Terminating program @@ -244,9 +244,9 @@ Debug = true [stage-17] $ ./spawn_redis_server.sh [stage-17] client: $ redis-cli INFO replication [stage-17] client: Sent bytes: "*2\r\n$4\r\nINFO\r\n$11\r\nreplication\r\n" -[stage-17] client: Received bytes: "$349\r\n# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:f21b3426022f891ab645580b8b22be87c613c68e\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n\r\n" -[stage-17] client: Received RESP value: "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:f21b3426022f891ab645580b8b22be87c613c68e\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" -[stage-17] Received "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:f21b3426022f891ab645580b8b22be87c613c68e\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" +[stage-17] client: Received bytes: "$349\r\n# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:e7a54743b6a3dfd3afeecc93f473494621042b53\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n\r\n" +[stage-17] client: Received RESP value: "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:e7a54743b6a3dfd3afeecc93f473494621042b53\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" +[stage-17] Received "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:e7a54743b6a3dfd3afeecc93f473494621042b53\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:0\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:0\r\nrepl_backlog_histlen:0\r\n" [stage-17] Found master_replid:xxx in response. [stage-17] Found master_reploffset:0 in response. [stage-17] Test passed. @@ -354,9 +354,9 @@ Debug = true [stage-22] Received "OK" [stage-22] client: $ redis-cli PSYNC ? -1 [stage-22] client: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-22] client: Received bytes: "+FULLRESYNC fb2fb0968aa35ad5ea168c4242aa56feae0441a5 0\r\n" -[stage-22] client: Received RESP value: "FULLRESYNC fb2fb0968aa35ad5ea168c4242aa56feae0441a5 0" -[stage-22] Received "FULLRESYNC fb2fb0968aa35ad5ea168c4242aa56feae0441a5 0" +[stage-22] client: Received bytes: "+FULLRESYNC fe39b5028c9ee592033bd6d6eed40a12a1ac400c 0\r\n" +[stage-22] client: Received RESP value: "FULLRESYNC fe39b5028c9ee592033bd6d6eed40a12a1ac400c 0" +[stage-22] Received "FULLRESYNC fe39b5028c9ee592033bd6d6eed40a12a1ac400c 0" [stage-22] Test passed. [stage-22] Terminating program [stage-22] Program terminated successfully @@ -380,11 +380,11 @@ Debug = true [stage-23] Received "OK" [stage-23] client: $ redis-cli PSYNC ? -1 [stage-23] client: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-23] client: Received bytes: "+FULLRESYNC 9fdd67679b02e6cf561df24fa086d1d4b682759f 0\r\n" -[stage-23] client: Received RESP value: "FULLRESYNC 9fdd67679b02e6cf561df24fa086d1d4b682759f 0" -[stage-23] Received "FULLRESYNC 9fdd67679b02e6cf561df24fa086d1d4b682759f 0" +[stage-23] client: Received bytes: "+FULLRESYNC 5bfcfbdc5a3e1762cc3b581dddb708db4335a0fe 0\r\n" +[stage-23] client: Received RESP value: "FULLRESYNC 5bfcfbdc5a3e1762cc3b581dddb708db4335a0fe 0" +[stage-23] Received "FULLRESYNC 5bfcfbdc5a3e1762cc3b581dddb708db4335a0fe 0" [stage-23] Reading RDB file... -[stage-23] client: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u00ad^\x14f\xfa\bused-mem\xc2`\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9fdd67679b02e6cf561df24fa086d1d4b682759f\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xf0\x87L>@P\x936" +[stage-23] client: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2NM\x16f\xfa\bused-mem\xc2\xd0\r\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(5bfcfbdc5a3e1762cc3b581dddb708db4335a0fe\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x1f\xdf\x15u\xda\xf7H8" [stage-23] Received RDB file [stage-23] Test passed. [stage-23] Terminating program @@ -409,11 +409,11 @@ Debug = true [stage-24] Received "OK" [stage-24] replica: $ redis-cli PSYNC ? -1 [stage-24] replica: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-24] replica: Received bytes: "+FULLRESYNC 01a0539538d16994b9e74a2f87572d2cbd526305 0\r\n" -[stage-24] replica: Received RESP value: "FULLRESYNC 01a0539538d16994b9e74a2f87572d2cbd526305 0" -[stage-24] Received "FULLRESYNC 01a0539538d16994b9e74a2f87572d2cbd526305 0" +[stage-24] replica: Received bytes: "+FULLRESYNC 8b16b1e4b81b9bb0da4d5217306f8b10966da2e8 0\r\n" +[stage-24] replica: Received RESP value: "FULLRESYNC 8b16b1e4b81b9bb0da4d5217306f8b10966da2e8 0" +[stage-24] Received "FULLRESYNC 8b16b1e4b81b9bb0da4d5217306f8b10966da2e8 0" [stage-24] Reading RDB file... -[stage-24] replica: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u00ad^\x14f\xfa\bused-mem\xc2PS\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(01a0539538d16994b9e74a2f87572d2cbd526305\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff0\xc2\xe3gD\xf9\xd0\xdc" +[stage-24] replica: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2NM\x16f\xfa\bused-mem\xc2`S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(8b16b1e4b81b9bb0da4d5217306f8b10966da2e8\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x06\x96\x8b\xa4BGS\xd3" [stage-24] Received RDB file [stage-24] client: $ redis-cli SET foo 123 [stage-24] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -469,11 +469,11 @@ Debug = true [stage-25] Received "OK" [stage-25] replica-1: $ redis-cli PSYNC ? -1 [stage-25] replica-1: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-25] replica-1: Received bytes: "+FULLRESYNC 7f0c3044ca8ffb4ed4d07bc2b439ab69b4fa895a 0\r\n" -[stage-25] replica-1: Received RESP value: "FULLRESYNC 7f0c3044ca8ffb4ed4d07bc2b439ab69b4fa895a 0" -[stage-25] Received "FULLRESYNC 7f0c3044ca8ffb4ed4d07bc2b439ab69b4fa895a 0" +[stage-25] replica-1: Received bytes: "+FULLRESYNC 1dbb6d9b7881eed18cc49915d9dab914696cfa61 0\r\n" +[stage-25] replica-1: Received RESP value: "FULLRESYNC 1dbb6d9b7881eed18cc49915d9dab914696cfa61 0" +[stage-25] Received "FULLRESYNC 1dbb6d9b7881eed18cc49915d9dab914696cfa61 0" [stage-25] Reading RDB file... -[stage-25] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u00ad^\x14f\xfa\bused-mem\xc20S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(7f0c3044ca8ffb4ed4d07bc2b439ab69b4fa895a\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffw\xa4H8\x95\f\xef\xef" +[stage-25] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2OM\x16f\xfa\bused-mem\xc2@S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1dbb6d9b7881eed18cc49915d9dab914696cfa61\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xbdH\xb6\x1d\xb9H\xff\xaa" [stage-25] Received RDB file [stage-25] Creating replica: 2 [stage-25] replica-2: $ redis-cli PING @@ -493,11 +493,11 @@ Debug = true [stage-25] Received "OK" [stage-25] replica-2: $ redis-cli PSYNC ? -1 [stage-25] replica-2: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-25] replica-2: Received bytes: "+FULLRESYNC 7f0c3044ca8ffb4ed4d07bc2b439ab69b4fa895a 0\r\n" -[stage-25] replica-2: Received RESP value: "FULLRESYNC 7f0c3044ca8ffb4ed4d07bc2b439ab69b4fa895a 0" -[stage-25] Received "FULLRESYNC 7f0c3044ca8ffb4ed4d07bc2b439ab69b4fa895a 0" +[stage-25] replica-2: Received bytes: "+FULLRESYNC 1dbb6d9b7881eed18cc49915d9dab914696cfa61 0\r\n" +[stage-25] replica-2: Received RESP value: "FULLRESYNC 1dbb6d9b7881eed18cc49915d9dab914696cfa61 0" +[stage-25] Received "FULLRESYNC 1dbb6d9b7881eed18cc49915d9dab914696cfa61 0" [stage-25] Reading RDB file... -[stage-25] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\u00ad^\x14f\xfa\bused-mem\u00a0:\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(7f0c3044ca8ffb4ed4d07bc2b439ab69b4fa895a\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xb6\xa2.\xe3K\xe2\x02\x8c" +[stage-25] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2OM\x16f\xfa\bused-mem°:\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1dbb6d9b7881eed18cc49915d9dab914696cfa61\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xef\xdbx\xba6\v\xf5S" [stage-25] Received RDB file [stage-25] Creating replica: 3 [stage-25] replica-3: $ redis-cli PING @@ -517,11 +517,11 @@ Debug = true [stage-25] Received "OK" [stage-25] replica-3: $ redis-cli PSYNC ? -1 [stage-25] replica-3: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-25] replica-3: Received bytes: "+FULLRESYNC 7f0c3044ca8ffb4ed4d07bc2b439ab69b4fa895a 0\r\n" -[stage-25] replica-3: Received RESP value: "FULLRESYNC 7f0c3044ca8ffb4ed4d07bc2b439ab69b4fa895a 0" -[stage-25] Received "FULLRESYNC 7f0c3044ca8ffb4ed4d07bc2b439ab69b4fa895a 0" +[stage-25] replica-3: Received bytes: "+FULLRESYNC 1dbb6d9b7881eed18cc49915d9dab914696cfa61 0\r\n" +[stage-25] replica-3: Received RESP value: "FULLRESYNC 1dbb6d9b7881eed18cc49915d9dab914696cfa61 0" +[stage-25] Received "FULLRESYNC 1dbb6d9b7881eed18cc49915d9dab914696cfa61 0" [stage-25] Reading RDB file... -[stage-25] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime®^\x14f\xfa\bused-mem°I\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(7f0c3044ca8ffb4ed4d07bc2b439ab69b4fa895a\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x96N\x9b\xf4s\x1e\xaa\xd7" +[stage-25] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2OM\x16f\xfa\bused-mem\xc2\xc0I\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1dbb6d9b7881eed18cc49915d9dab914696cfa61\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff(/\x1b%\x01\xae\x18\xdb" [stage-25] Received RDB file [stage-25] client: $ redis-cli SET foo 123 [stage-25] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -750,11 +750,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-1: $ redis-cli PSYNC ? -1 [stage-30] replica-1: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-30] replica-1: Received bytes: "+FULLRESYNC e9c67653a22ce44c73b0658ac2ebc023a39605c5 0\r\n" -[stage-30] replica-1: Received RESP value: "FULLRESYNC e9c67653a22ce44c73b0658ac2ebc023a39605c5 0" -[stage-30] Received "FULLRESYNC e9c67653a22ce44c73b0658ac2ebc023a39605c5 0" +[stage-30] replica-1: Received bytes: "+FULLRESYNC 07b4b51d395481cbd82703bf45515c0322c9b37a 0\r\n" +[stage-30] replica-1: Received RESP value: "FULLRESYNC 07b4b51d395481cbd82703bf45515c0322c9b37a 0" +[stage-30] Received "FULLRESYNC 07b4b51d395481cbd82703bf45515c0322c9b37a 0" [stage-30] Reading RDB file... -[stage-30] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime¯^\x14f\xfa\bused-mem\xc2\xe0\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e9c67653a22ce44c73b0658ac2ebc023a39605c5\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff9\xeb͜Ib\xb7\xf2" +[stage-30] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2PM\x16f\xfa\bused-mem°\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(07b4b51d395481cbd82703bf45515c0322c9b37a\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x91X\x1c:\x7f[\xf8\xbd" [stage-30] Received RDB file [stage-30] Creating replica: 2 [stage-30] replica-2: $ redis-cli PING @@ -774,11 +774,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-2: $ redis-cli PSYNC ? -1 [stage-30] replica-2: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-30] replica-2: Received bytes: "+FULLRESYNC e9c67653a22ce44c73b0658ac2ebc023a39605c5 0\r\n" -[stage-30] replica-2: Received RESP value: "FULLRESYNC e9c67653a22ce44c73b0658ac2ebc023a39605c5 0" -[stage-30] Received "FULLRESYNC e9c67653a22ce44c73b0658ac2ebc023a39605c5 0" +[stage-30] replica-2: Received bytes: "+FULLRESYNC 07b4b51d395481cbd82703bf45515c0322c9b37a 0\r\n" +[stage-30] replica-2: Received RESP value: "FULLRESYNC 07b4b51d395481cbd82703bf45515c0322c9b37a 0" +[stage-30] Received "FULLRESYNC 07b4b51d395481cbd82703bf45515c0322c9b37a 0" [stage-30] Reading RDB file... -[stage-30] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime¯^\x14f\xfa\bused-mem\xc2p\xf6\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e9c67653a22ce44c73b0658ac2ebc023a39605c5\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff7\x8a\xe8`&\x91ǧ" +[stage-30] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2PM\x16f\xfa\bused-mem\xc2@\xf6\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(07b4b51d395481cbd82703bf45515c0322c9b37a\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\f\xac\x91\xbaA\x05or" [stage-30] Received RDB file [stage-30] Creating replica: 3 [stage-30] replica-3: $ redis-cli PING @@ -798,11 +798,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-3: $ redis-cli PSYNC ? -1 [stage-30] replica-3: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-30] replica-3: Received bytes: "+FULLRESYNC e9c67653a22ce44c73b0658ac2ebc023a39605c5 0\r\n" -[stage-30] replica-3: Received RESP value: "FULLRESYNC e9c67653a22ce44c73b0658ac2ebc023a39605c5 0" -[stage-30] Received "FULLRESYNC e9c67653a22ce44c73b0658ac2ebc023a39605c5 0" +[stage-30] replica-3: Received bytes: "+FULLRESYNC 07b4b51d395481cbd82703bf45515c0322c9b37a 0\r\n" +[stage-30] replica-3: Received RESP value: "FULLRESYNC 07b4b51d395481cbd82703bf45515c0322c9b37a 0" +[stage-30] Received "FULLRESYNC 07b4b51d395481cbd82703bf45515c0322c9b37a 0" [stage-30] Reading RDB file... -[stage-30] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime¯^\x14f\xfa\bused-mem\xc2pA\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e9c67653a22ce44c73b0658ac2ebc023a39605c5\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x0eb\x11\x1a\x85\xe1\t<" +[stage-30] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2PM\x16f\xfa\bused-mem\xc2@A\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(07b4b51d395481cbd82703bf45515c0322c9b37a\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff5Dh\xc0\xe2u\xa1\xe9" [stage-30] Received RDB file [stage-30] Creating replica: 4 [stage-30] replica-4: $ redis-cli PING @@ -822,11 +822,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-4: $ redis-cli PSYNC ? -1 [stage-30] replica-4: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-30] replica-4: Received bytes: "+FULLRESYNC e9c67653a22ce44c73b0658ac2ebc023a39605c5 0\r\n" -[stage-30] replica-4: Received RESP value: "FULLRESYNC e9c67653a22ce44c73b0658ac2ebc023a39605c5 0" -[stage-30] Received "FULLRESYNC e9c67653a22ce44c73b0658ac2ebc023a39605c5 0" +[stage-30] replica-4: Received bytes: "+FULLRESYNC 07b4b51d395481cbd82703bf45515c0322c9b37a 0\r\n" +[stage-30] replica-4: Received RESP value: "FULLRESYNC 07b4b51d395481cbd82703bf45515c0322c9b37a 0" +[stage-30] Received "FULLRESYNC 07b4b51d395481cbd82703bf45515c0322c9b37a 0" [stage-30] Reading RDB file... -[stage-30] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime¯^\x14f\xfa\bused-mem\u0080\x8c\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e9c67653a22ce44c73b0658ac2ebc023a39605c5\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x9e^\xfb\xe9 dd\b" +[stage-30] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2PM\x16f\xfa\bused-mem\xc2P\x8c\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(07b4b51d395481cbd82703bf45515c0322c9b37a\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x99\xb3ܹy\xe8\a\xb5" [stage-30] Received RDB file [stage-30] client: $ redis-cli WAIT 3 500 [stage-30] client: Sent bytes: "*3\r\n$4\r\nWAIT\r\n$1\r\n3\r\n$3\r\n500\r\n" @@ -873,11 +873,11 @@ Debug = true [stage-31] Received "OK" [stage-31] replica-1: $ redis-cli PSYNC ? -1 [stage-31] replica-1: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-31] replica-1: Received bytes: "+FULLRESYNC 092b55e2e9046b6afad7ada7fbb652a98a4e6047 0\r\n" -[stage-31] replica-1: Received RESP value: "FULLRESYNC 092b55e2e9046b6afad7ada7fbb652a98a4e6047 0" -[stage-31] Received "FULLRESYNC 092b55e2e9046b6afad7ada7fbb652a98a4e6047 0" +[stage-31] replica-1: Received bytes: "+FULLRESYNC 90990a711540663d18f8e729517f504856a7ee25 0\r\n" +[stage-31] replica-1: Received RESP value: "FULLRESYNC 90990a711540663d18f8e729517f504856a7ee25 0" +[stage-31] Received "FULLRESYNC 90990a711540663d18f8e729517f504856a7ee25 0" [stage-31] Reading RDB file... -[stage-31] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime°^\x14f\xfa\bused-mem\xc2\x00\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(092b55e2e9046b6afad7ada7fbb652a98a4e6047\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x8e\xdd\xc0Ċ/ \x96" +[stage-31] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2QM\x16f\xfa\bused-mem\xc2P\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(90990a711540663d18f8e729517f504856a7ee25\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffj\x12\xd9^\xed^yD" [stage-31] Received RDB file [stage-31] Creating replica: 2 [stage-31] replica-2: $ redis-cli PING @@ -897,11 +897,11 @@ Debug = true [stage-31] Received "OK" [stage-31] replica-2: $ redis-cli PSYNC ? -1 [stage-31] replica-2: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-31] replica-2: Received bytes: "+FULLRESYNC 092b55e2e9046b6afad7ada7fbb652a98a4e6047 0\r\n" -[stage-31] replica-2: Received RESP value: "FULLRESYNC 092b55e2e9046b6afad7ada7fbb652a98a4e6047 0" -[stage-31] Received "FULLRESYNC 092b55e2e9046b6afad7ada7fbb652a98a4e6047 0" +[stage-31] replica-2: Received bytes: "+FULLRESYNC 90990a711540663d18f8e729517f504856a7ee25 0\r\n" +[stage-31] replica-2: Received RESP value: "FULLRESYNC 90990a711540663d18f8e729517f504856a7ee25 0" +[stage-31] Received "FULLRESYNC 90990a711540663d18f8e729517f504856a7ee25 0" [stage-31] Reading RDB file... -[stage-31] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime°^\x14f\xfa\bused-mem\u0090\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(092b55e2e9046b6afad7ada7fbb652a98a4e6047\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xb4]\xff\xbf#/\t\xb9" +[stage-31] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2QM\x16f\xfa\bused-mem\xc2\xe0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(90990a711540663d18f8e729517f504856a7ee25\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff!\xe1~\x0e\x8b:\r\x1d" [stage-31] Received RDB file [stage-31] Creating replica: 3 [stage-31] replica-3: $ redis-cli PING @@ -921,11 +921,11 @@ Debug = true [stage-31] Received "OK" [stage-31] replica-3: $ redis-cli PSYNC ? -1 [stage-31] replica-3: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-31] replica-3: Received bytes: "+FULLRESYNC 092b55e2e9046b6afad7ada7fbb652a98a4e6047 0\r\n" -[stage-31] replica-3: Received RESP value: "FULLRESYNC 092b55e2e9046b6afad7ada7fbb652a98a4e6047 0" -[stage-31] Received "FULLRESYNC 092b55e2e9046b6afad7ada7fbb652a98a4e6047 0" +[stage-31] replica-3: Received bytes: "+FULLRESYNC 90990a711540663d18f8e729517f504856a7ee25 0\r\n" +[stage-31] replica-3: Received RESP value: "FULLRESYNC 90990a711540663d18f8e729517f504856a7ee25 0" +[stage-31] Received "FULLRESYNC 90990a711540663d18f8e729517f504856a7ee25 0" [stage-31] Reading RDB file... -[stage-31] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime±^\x14f\xfa\bused-mem\u0090@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(092b55e2e9046b6afad7ada7fbb652a98a4e6047\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffy\x8f?\x931Q\xc8I" +[stage-31] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2QM\x16f\xfa\bused-mem\xc2\xe0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(90990a711540663d18f8e729517f504856a7ee25\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x19\xc6\xe6Fb\xf5\x9a3" [stage-31] Received RDB file [stage-31] Creating replica: 4 [stage-31] replica-4: $ redis-cli PING @@ -945,11 +945,11 @@ Debug = true [stage-31] Received "OK" [stage-31] replica-4: $ redis-cli PSYNC ? -1 [stage-31] replica-4: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-31] replica-4: Received bytes: "+FULLRESYNC 092b55e2e9046b6afad7ada7fbb652a98a4e6047 0\r\n" -[stage-31] replica-4: Received RESP value: "FULLRESYNC 092b55e2e9046b6afad7ada7fbb652a98a4e6047 0" -[stage-31] Received "FULLRESYNC 092b55e2e9046b6afad7ada7fbb652a98a4e6047 0" +[stage-31] replica-4: Received bytes: "+FULLRESYNC 90990a711540663d18f8e729517f504856a7ee25 0\r\n" +[stage-31] replica-4: Received RESP value: "FULLRESYNC 90990a711540663d18f8e729517f504856a7ee25 0" +[stage-31] Received "FULLRESYNC 90990a711540663d18f8e729517f504856a7ee25 0" [stage-31] Reading RDB file... -[stage-31] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime±^\x14f\xfa\bused-mem\u00a0\x8b\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(092b55e2e9046b6afad7ada7fbb652a98a4e6047\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xcc\xc9&\xcf\xe8O\x80\x97" +[stage-31] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2RM\x16f\xfa\bused-mem\xc2\xf0\x8b\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(90990a711540663d18f8e729517f504856a7ee25\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa9~\x19\xc5*{-\xd2" [stage-31] Received RDB file [stage-31] client: $ redis-cli SET foo 123 [stage-31] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -967,8 +967,8 @@ Debug = true [stage-31] replica-1: Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n" [stage-31] replica-1: Received RESP value: ["REPLCONF", "GETACK", "*"] [stage-31] Received ["REPLCONF", "GETACK", "*"] -[stage-31] replica-1: $ redis-cli REPLCONF ACK 304 -[stage-31] replica-1: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n304\r\n" +[stage-31] replica-1: $ redis-cli REPLCONF ACK 54 +[stage-31] replica-1: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$2\r\n54\r\n" [stage-31] Testing Replica : 2 [stage-31] replica-2: Received bytes: "*2\r\n$6\r\nSELECT\r\n$1\r\n0\r\n" [stage-31] replica-2: Received RESP value: ["SELECT", "0"] @@ -1013,8 +1013,8 @@ Debug = true [stage-31] replica-1: Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n" [stage-31] replica-1: Received RESP value: ["REPLCONF", "GETACK", "*"] [stage-31] Received ["REPLCONF", "GETACK", "*"] -[stage-31] replica-1: $ redis-cli REPLCONF ACK 372 -[stage-31] replica-1: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n372\r\n" +[stage-31] replica-1: $ redis-cli REPLCONF ACK 122 +[stage-31] replica-1: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n122\r\n" [stage-31] Testing Replica : 2 [stage-31] replica-2: Received bytes: "*3\r\n$3\r\nSET\r\n$3\r\nbaz\r\n$3\r\n789\r\n" [stage-31] replica-2: Received RESP value: ["SET", "baz", "789"] @@ -1022,8 +1022,8 @@ Debug = true [stage-31] replica-2: Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n" [stage-31] replica-2: Received RESP value: ["REPLCONF", "GETACK", "*"] [stage-31] Received ["REPLCONF", "GETACK", "*"] -[stage-31] replica-2: $ redis-cli REPLCONF ACK 372 -[stage-31] replica-2: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n372\r\n" +[stage-31] replica-2: $ redis-cli REPLCONF ACK 122 +[stage-31] replica-2: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n122\r\n" [stage-31] Testing Replica : 3 [stage-31] replica-3: Received bytes: "*3\r\n$3\r\nSET\r\n$3\r\nbaz\r\n$3\r\n789\r\n" [stage-31] replica-3: Received RESP value: ["SET", "baz", "789"] @@ -1031,8 +1031,8 @@ Debug = true [stage-31] replica-3: Received bytes: "*3\r\n$8\r\nREPLCONF\r\n$6\r\nGETACK\r\n$1\r\n*\r\n" [stage-31] replica-3: Received RESP value: ["REPLCONF", "GETACK", "*"] [stage-31] Received ["REPLCONF", "GETACK", "*"] -[stage-31] replica-3: $ redis-cli REPLCONF ACK 372 -[stage-31] replica-3: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n372\r\n" +[stage-31] replica-3: $ redis-cli REPLCONF ACK 122 +[stage-31] replica-3: Sent bytes: "*3\r\n$8\r\nREPLCONF\r\n$3\r\nACK\r\n$3\r\n122\r\n" [stage-31] Testing Replica : 4 [stage-31] replica-4: Received bytes: "*3\r\n$3\r\nSET\r\n$3\r\nbaz\r\n$3\r\n789\r\n" [stage-31] replica-4: Received RESP value: ["SET", "baz", "789"] @@ -1042,7 +1042,7 @@ Debug = true [stage-31] Received ["REPLCONF", "GETACK", "*"] [stage-31] client: Received bytes: ":3\r\n" [stage-31] client: Received RESP value: 3 -[stage-31] WAIT command returned after 2104 ms +[stage-31] WAIT command returned after 2102 ms [stage-31] Test passed. [stage-31] Terminating program [stage-31] Program terminated successfully @@ -1100,7 +1100,7 @@ Debug = true [stage-36] Running tests for Stage #36: streams-xadd-full-autoid [stage-36] $ ./spawn_redis_server.sh [stage-36] $ redis-cli xadd "pear" * foo bar -[stage-36] Received response: ""1712610996491-0"" +[stage-36] Received response: ""1712737621074-0"" [stage-36] The first part of the ID is a valid unix milliseconds timestamp [stage-36] The second part of the ID is a valid sequence number [stage-36] Test passed. diff --git a/internal/util.go b/internal/util.go index ba787d5a..19a845a0 100644 --- a/internal/util.go +++ b/internal/util.go @@ -46,6 +46,10 @@ func SpawnReplicas(replicaCount int, stageHarness *test_case_harness.TestCaseHar return nil, err } + // The bytes received and sent during the handshake don't count towards offset. + // After finishing the handshake we reset the counters. + replica.ResetByteCounters() + replicas = append(replicas, replica) } return replicas, nil