From b1bebb4399731a400c37364af65dbf07c5dcb138 Mon Sep 17 00:00:00 2001 From: Ryan Gang Date: Fri, 14 Jun 2024 22:21:08 +0530 Subject: [PATCH] tests: update fixtures --- .../test_helpers/fixtures/transactions/pass | 177 +++++++++--------- internal/test_txn_tx_failure.go | 4 +- 2 files changed, 94 insertions(+), 87 deletions(-) diff --git a/internal/test_helpers/fixtures/transactions/pass b/internal/test_helpers/fixtures/transactions/pass index 07f14e77..aadea53a 100644 --- a/internal/test_helpers/fixtures/transactions/pass +++ b/internal/test_helpers/fixtures/transactions/pass @@ -342,6 +342,11 @@ Debug = true [stage-46] client: Received bytes: ":2\r\n" [stage-46] client: Received RESP integer: 2 [stage-46] Received 2 +[stage-46] client: > GET pear +[stage-46] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$4\r\npear\r\n" +[stage-46] client: Received bytes: "$1\r\n2\r\n" +[stage-46] client: Received RESP bulk string: "2" +[stage-46] Received "2" [stage-46] Test passed. [stage-46] Terminating program [stage-46] Program terminated successfully @@ -601,7 +606,7 @@ Debug = true [stage-36] Running tests for Stage #36: xu6 [stage-36] $ ./spawn_redis_server.sh [stage-36] $ redis-cli xadd "pear" * foo bar -[stage-36] Received response: ""1718359929972-0"" +[stage-36] Received response: ""1718383812190-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. @@ -679,11 +684,11 @@ Debug = true [stage-31] Received "OK" [stage-31] replica-1: > 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 b1c86a29dcf454e0afe740734f2322360a631faf 0\r\n" -[stage-31] replica-1: Received RESP simple string: "FULLRESYNC b1c86a29dcf454e0afe740734f2322360a631faf 0" -[stage-31] Received "FULLRESYNC b1c86a29dcf454e0afe740734f2322360a631faf 0" +[stage-31] replica-1: Received bytes: "+FULLRESYNC 1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7 0\r\n" +[stage-31] replica-1: Received RESP simple string: "FULLRESYNC 1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7 0" +[stage-31] Received "FULLRESYNC 1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7 0" [stage-31] Reading RDB file... -[stage-31] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2z\x17lf\xfa\bused-mem\xc2\xf0\r\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b1c86a29dcf454e0afe740734f2322360a631faf\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff 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 b1c86a29dcf454e0afe740734f2322360a631faf 0\r\n" -[stage-31] replica-2: Received RESP simple string: "FULLRESYNC b1c86a29dcf454e0afe740734f2322360a631faf 0" -[stage-31] Received "FULLRESYNC b1c86a29dcf454e0afe740734f2322360a631faf 0" +[stage-31] replica-2: Received bytes: "+FULLRESYNC 1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7 0\r\n" +[stage-31] replica-2: Received RESP simple string: "FULLRESYNC 1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7 0" +[stage-31] Received "FULLRESYNC 1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7 0" [stage-31] Reading RDB file... -[stage-31] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2z\x17lf\xfa\bused-mem\u0080\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b1c86a29dcf454e0afe740734f2322360a631faf\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x0e߃\xf0yj/\xe9" +[stage-31] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc4tlf\xfa\bused-mem\xc2\xc0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffM\x8d\xa1n^\xaf.v" [stage-31] Received RDB file [stage-31] Creating replica: 3 [stage-31] replica-3: $ redis-cli PING @@ -727,11 +732,11 @@ Debug = true [stage-31] Received "OK" [stage-31] replica-3: > 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 b1c86a29dcf454e0afe740734f2322360a631faf 0\r\n" -[stage-31] replica-3: Received RESP simple string: "FULLRESYNC b1c86a29dcf454e0afe740734f2322360a631faf 0" -[stage-31] Received "FULLRESYNC b1c86a29dcf454e0afe740734f2322360a631faf 0" +[stage-31] replica-3: Received bytes: "+FULLRESYNC 1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7 0\r\n" +[stage-31] replica-3: Received RESP simple string: "FULLRESYNC 1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7 0" +[stage-31] Received "FULLRESYNC 1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7 0" [stage-31] Reading RDB file... -[stage-31] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2z\x17lf\xfa\bused-mem\u0080@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b1c86a29dcf454e0afe740734f2322360a631faf\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff6\xf8\x1b\xb8\x90\xa5\xb8\xc7" +[stage-31] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc4tlf\xfa\bused-mem\xc2\xc0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffu\xaa9&\xb7`\xb9X" [stage-31] Received RDB file [stage-31] Creating replica: 4 [stage-31] replica-4: $ redis-cli PING @@ -751,11 +756,11 @@ Debug = true [stage-31] Received "OK" [stage-31] replica-4: > 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 b1c86a29dcf454e0afe740734f2322360a631faf 0\r\n" -[stage-31] replica-4: Received RESP simple string: "FULLRESYNC b1c86a29dcf454e0afe740734f2322360a631faf 0" -[stage-31] Received "FULLRESYNC b1c86a29dcf454e0afe740734f2322360a631faf 0" +[stage-31] replica-4: Received bytes: "+FULLRESYNC 1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7 0\r\n" +[stage-31] replica-4: Received RESP simple string: "FULLRESYNC 1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7 0" +[stage-31] Received "FULLRESYNC 1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7 0" [stage-31] Reading RDB file... -[stage-31] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2z\x17lf\xfa\bused-mem\u0090\x8b\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b1c86a29dcf454e0afe740734f2322360a631faf\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xf2͚φ߭o" +[stage-31] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc5tlf\xfa\bused-mem\xc2Ћ\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1c06ed29c4a083a5302082fabaa3a0b91c9a3bf7\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffDj\xe05Z\xab\xfa." [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" @@ -870,7 +875,7 @@ Debug = true [stage-31] replica-4: Not sending ACK to Master [stage-31] client: Received bytes: ":2\r\n" [stage-31] client: Received RESP integer: 2 -[stage-31] WAIT command returned after 2099 ms +[stage-31] WAIT command returned after 2097 ms [stage-31] Test passed. [stage-31] Terminating program [stage-31] Program terminated successfully @@ -896,11 +901,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-1: > 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 b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0\r\n" -[stage-30] replica-1: Received RESP simple string: "FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0" -[stage-30] Received "FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0" +[stage-30] replica-1: Received bytes: "+FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0\r\n" +[stage-30] replica-1: Received RESP simple string: "FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0" +[stage-30] Received "FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0" [stage-30] Reading RDB file... -[stage-30] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2}\x17lf\xfa\bused-mem\xc2\x10\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b542b691dcdb4c1679ba25eaf4299e5b0d16fbca\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff5\xa4e'\xf8\xf1\x83\xc5" +[stage-30] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc7tlf\xfa\bused-mem\xc2\x10\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(5375b7c06be89997dbda6de1083a664bddf749a7\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x00\xa4\x1fh\xdd\xc0\x9e\x9e" [stage-30] Received RDB file [stage-30] Creating replica: 2 [stage-30] replica-2: $ redis-cli PING @@ -920,11 +925,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-2: > 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 b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0\r\n" -[stage-30] replica-2: Received RESP simple string: "FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0" -[stage-30] Received "FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0" +[stage-30] replica-2: Received bytes: "+FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0\r\n" +[stage-30] replica-2: Received RESP simple string: "FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0" +[stage-30] Received "FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0" [stage-30] Reading RDB file... -[stage-30] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2}\x17lf\xfa\bused-mem\u00a0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b542b691dcdb4c1679ba25eaf4299e5b0d16fbca\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff~W\xc2w\x9e\x95\xf7\x9c" +[stage-30] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc7tlf\xfa\bused-mem\u00a0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(5375b7c06be89997dbda6de1083a664bddf749a7\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffKW\xb88\xbb\xa4\xea\xc7" [stage-30] Received RDB file [stage-30] Creating replica: 3 [stage-30] replica-3: $ redis-cli PING @@ -944,11 +949,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-3: > 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 b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0\r\n" -[stage-30] replica-3: Received RESP simple string: "FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0" -[stage-30] Received "FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0" +[stage-30] replica-3: Received bytes: "+FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0\r\n" +[stage-30] replica-3: Received RESP simple string: "FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0" +[stage-30] Received "FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0" [stage-30] Reading RDB file... -[stage-30] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2}\x17lf\xfa\bused-mem\u00a0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b542b691dcdb4c1679ba25eaf4299e5b0d16fbca\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffFpZ?wZ`\xb2" +[stage-30] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc7tlf\xfa\bused-mem\u00a0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(5375b7c06be89997dbda6de1083a664bddf749a7\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffsp pRk}\xe9" [stage-30] Received RDB file [stage-30] Creating replica: 4 [stage-30] replica-4: $ redis-cli PING @@ -968,11 +973,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-4: > 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 b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0\r\n" -[stage-30] replica-4: Received RESP simple string: "FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0" -[stage-30] Received "FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0" +[stage-30] replica-4: Received bytes: "+FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0\r\n" +[stage-30] replica-4: Received RESP simple string: "FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0" +[stage-30] Received "FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0" [stage-30] Reading RDB file... -[stage-30] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2}\x17lf\xfa\bused-mem°\x8b\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b542b691dcdb4c1679ba25eaf4299e5b0d16fbca\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x82E\xdbHa u\x1a" +[stage-30] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc7tlf\xfa\bused-mem°\x8b\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(5375b7c06be89997dbda6de1083a664bddf749a7\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xb7E\xa1\aD\x11hA" [stage-30] Received RDB file [stage-30] Creating replica: 5 [stage-30] replica-5: $ redis-cli PING @@ -992,11 +997,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-5: > PSYNC ? -1 [stage-30] replica-5: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-30] replica-5: Received bytes: "+FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0\r\n" -[stage-30] replica-5: Received RESP simple string: "FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0" -[stage-30] Received "FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0" +[stage-30] replica-5: Received bytes: "+FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0\r\n" +[stage-30] replica-5: Received RESP simple string: "FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0" +[stage-30] Received "FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0" [stage-30] Reading RDB file... -[stage-30] replica-5: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2}\x17lf\xfa\bused-mem\xc2\xc0\xd6\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b542b691dcdb4c1679ba25eaf4299e5b0d16fbca\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffa$\xaa\xf2\xcaY\x1f\xbc" +[stage-30] replica-5: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc7tlf\xfa\bused-mem\xc2\xc0\xd6\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(5375b7c06be89997dbda6de1083a664bddf749a7\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffT$н\xefh\x02\xe7" [stage-30] Received RDB file [stage-30] Creating replica: 6 [stage-30] replica-6: $ redis-cli PING @@ -1016,11 +1021,11 @@ Debug = true [stage-30] Received "OK" [stage-30] replica-6: > PSYNC ? -1 [stage-30] replica-6: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-30] replica-6: Received bytes: "+FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0\r\n" -[stage-30] replica-6: Received RESP simple string: "FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0" -[stage-30] Received "FULLRESYNC b542b691dcdb4c1679ba25eaf4299e5b0d16fbca 0" +[stage-30] replica-6: Received bytes: "+FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0\r\n" +[stage-30] replica-6: Received RESP simple string: "FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0" +[stage-30] Received "FULLRESYNC 5375b7c06be89997dbda6de1083a664bddf749a7 0" [stage-30] Reading RDB file... -[stage-30] replica-6: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2}\x17lf\xfa\bused-mem\xc2\xc0!\x14\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b542b691dcdb4c1679ba25eaf4299e5b0d16fbca\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\r^\n)j\aO\xbc" +[stage-30] replica-6: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc7tlf\xfa\bused-mem\xc2\xc0!\x14\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(5375b7c06be89997dbda6de1083a664bddf749a7\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff8^pfO6R\xe7" [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" @@ -1224,11 +1229,11 @@ Debug = true [stage-25] Received "OK" [stage-25] replica-1: > 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 1527b48ff93552365a738f7a9db891555b524d96 0\r\n" -[stage-25] replica-1: Received RESP simple string: "FULLRESYNC 1527b48ff93552365a738f7a9db891555b524d96 0" -[stage-25] Received "FULLRESYNC 1527b48ff93552365a738f7a9db891555b524d96 0" +[stage-25] replica-1: Received bytes: "+FULLRESYNC 2e58128f42dc607c41d060c0144f89740dd79c29 0\r\n" +[stage-25] replica-1: Received RESP simple string: "FULLRESYNC 2e58128f42dc607c41d060c0144f89740dd79c29 0" +[stage-25] Received "FULLRESYNC 2e58128f42dc607c41d060c0144f89740dd79c29 0" [stage-25] Reading RDB file... -[stage-25] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x7f\x17lf\xfa\bused-mem\u00a0S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1527b48ff93552365a738f7a9db891555b524d96\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x06R\x10\x1f\xa6\xf0\x93\x12" +[stage-25] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc9tlf\xfa\bused-mem\u00a0S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(2e58128f42dc607c41d060c0144f89740dd79c29\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xde0\xf4_xg\x18\xd1" [stage-25] Received RDB file [stage-25] Creating replica: 2 [stage-25] replica-2: $ redis-cli PING @@ -1248,11 +1253,11 @@ Debug = true [stage-25] Received "OK" [stage-25] replica-2: > 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 1527b48ff93552365a738f7a9db891555b524d96 0\r\n" -[stage-25] replica-2: Received RESP simple string: "FULLRESYNC 1527b48ff93552365a738f7a9db891555b524d96 0" -[stage-25] Received "FULLRESYNC 1527b48ff93552365a738f7a9db891555b524d96 0" +[stage-25] replica-2: Received bytes: "+FULLRESYNC 2e58128f42dc607c41d060c0144f89740dd79c29 0\r\n" +[stage-25] replica-2: Received RESP simple string: "FULLRESYNC 2e58128f42dc607c41d060c0144f89740dd79c29 0" +[stage-25] Received "FULLRESYNC 2e58128f42dc607c41d060c0144f89740dd79c29 0" [stage-25] Reading RDB file... -[stage-25] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x7f\x17lf\xfa\bused-mem\xc2\x10;\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1527b48ff93552365a738f7a9db891555b524d96\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x83\t\x95Z;6#\xc8" +[stage-25] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc9tlf\xfa\bused-mem\xc2\x10;\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(2e58128f42dc607c41d060c0144f89740dd79c29\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff[kq\x1a塨\v" [stage-25] Received RDB file [stage-25] Creating replica: 3 [stage-25] replica-3: $ redis-cli PING @@ -1272,11 +1277,11 @@ Debug = true [stage-25] Received "OK" [stage-25] replica-3: > 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 1527b48ff93552365a738f7a9db891555b524d96 0\r\n" -[stage-25] replica-3: Received RESP simple string: "FULLRESYNC 1527b48ff93552365a738f7a9db891555b524d96 0" -[stage-25] Received "FULLRESYNC 1527b48ff93552365a738f7a9db891555b524d96 0" +[stage-25] replica-3: Received bytes: "+FULLRESYNC 2e58128f42dc607c41d060c0144f89740dd79c29 0\r\n" +[stage-25] replica-3: Received RESP simple string: "FULLRESYNC 2e58128f42dc607c41d060c0144f89740dd79c29 0" +[stage-25] Received "FULLRESYNC 2e58128f42dc607c41d060c0144f89740dd79c29 0" [stage-25] Reading RDB file... -[stage-25] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x7f\x17lf\xfa\bused-mem\xc2 J\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1527b48ff93552365a738f7a9db891555b524d96\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa7ԧ\xa0\xd8\xe5-\x19" +[stage-25] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc9tlf\xfa\bused-mem\xc2 J\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(2e58128f42dc607c41d060c0144f89740dd79c29\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x7f\xb6C\xe0\x06r\xa6\xda" [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" @@ -1361,11 +1366,11 @@ Debug = true [stage-24] Received "OK" [stage-24] replica: > 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 bc8b9667b67de402e31e3a61ca1fee299574b0eb 0\r\n" -[stage-24] replica: Received RESP simple string: "FULLRESYNC bc8b9667b67de402e31e3a61ca1fee299574b0eb 0" -[stage-24] Received "FULLRESYNC bc8b9667b67de402e31e3a61ca1fee299574b0eb 0" +[stage-24] replica: Received bytes: "+FULLRESYNC fb217523f2c9c301e3804564b643014400411d9b 0\r\n" +[stage-24] replica: Received RESP simple string: "FULLRESYNC fb217523f2c9c301e3804564b643014400411d9b 0" +[stage-24] Received "FULLRESYNC fb217523f2c9c301e3804564b643014400411d9b 0" [stage-24] Reading RDB file... -[stage-24] replica: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x7f\x17lf\xfa\bused-mem\xc2@S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(bc8b9667b67de402e31e3a61ca1fee299574b0eb\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xcb/\xb8\r]\x81š" +[stage-24] replica: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xc9tlf\xfa\bused-mem\xc2\xc0S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(fb217523f2c9c301e3804564b643014400411d9b\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffn\xff\b\xcdI\xcb\xc0a" [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" @@ -1420,11 +1425,11 @@ Debug = true [stage-23] Received "OK" [stage-23] client: > 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 dd8ebf099da561c5267dca2a58bb807c3e083ca8 0\r\n" -[stage-23] client: Received RESP simple string: "FULLRESYNC dd8ebf099da561c5267dca2a58bb807c3e083ca8 0" -[stage-23] Received "FULLRESYNC dd8ebf099da561c5267dca2a58bb807c3e083ca8 0" +[stage-23] client: Received bytes: "+FULLRESYNC 4a683405a76db69b468112e12b5244236490dbac 0\r\n" +[stage-23] client: Received RESP simple string: "FULLRESYNC 4a683405a76db69b468112e12b5244236490dbac 0" +[stage-23] Received "FULLRESYNC 4a683405a76db69b468112e12b5244236490dbac 0" [stage-23] Reading RDB file... -[stage-23] client: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x7f\x17lf\xfa\bused-mem\xc2P\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(dd8ebf099da561c5267dca2a58bb807c3e083ca8\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffkCUoi@\\i" +[stage-23] client: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.4\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\xcatlf\xfa\bused-mem\xc2\xf0\r\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(4a683405a76db69b468112e12b5244236490dbac\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffm\xdc\xf5\xc2b\xd08\xfb" [stage-23] Received RDB file [stage-23] Test passed. [stage-23] Terminating program @@ -1449,9 +1454,9 @@ Debug = true [stage-22] Received "OK" [stage-22] client: > 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 7802fdd5c62a9e9053da282161b498a34be627d8 0\r\n" -[stage-22] client: Received RESP simple string: "FULLRESYNC 7802fdd5c62a9e9053da282161b498a34be627d8 0" -[stage-22] Received "FULLRESYNC 7802fdd5c62a9e9053da282161b498a34be627d8 0" +[stage-22] client: Received bytes: "+FULLRESYNC 378cc0e01a8107822ffb083ff497644efb3d0d21 0\r\n" +[stage-22] client: Received RESP simple string: "FULLRESYNC 378cc0e01a8107822ffb083ff497644efb3d0d21 0" +[stage-22] Received "FULLRESYNC 378cc0e01a8107822ffb083ff497644efb3d0d21 0" [stage-22] Test passed. [stage-22] Terminating program [stage-22] Program terminated successfully @@ -1550,9 +1555,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:01a3ccf712fc47d884a8e87a25e87bea61296a33\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 bulk string: "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:01a3ccf712fc47d884a8e87a25e87bea61296a33\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:01a3ccf712fc47d884a8e87a25e87bea61296a33\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:9c5dddb64daca5c0a600308f4e3d66d424043344\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 bulk string: "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:9c5dddb64daca5c0a600308f4e3d66d424043344\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:9c5dddb64daca5c0a600308f4e3d66d424043344\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. @@ -1593,9 +1598,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:3f87fa036213f958f356657963c68dc0f1162e74\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 bulk string: "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:3f87fa036213f958f356657963c68dc0f1162e74\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:3f87fa036213f958f356657963c68dc0f1162e74\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:e6651c8a5c2e8dd0a7ad1b4ac62ffcc84fb639fb\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 bulk string: "# Replication\r\nrole:master\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:e6651c8a5c2e8dd0a7ad1b4ac62ffcc84fb639fb\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:e6651c8a5c2e8dd0a7ad1b4ac62ffcc84fb639fb\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 @@ -1610,7 +1615,7 @@ Debug = true [stage-14] Program terminated successfully [stage-13] Running tests for Stage #13: sm4 -[stage-13] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2611003109 --dbfilename apple.rdb +[stage-13] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles202461335 --dbfilename apple.rdb [stage-13] client: $ redis-cli GET strawberry [stage-13] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$10\r\nstrawberry\r\n" [stage-13] client: Received bytes: "$-1\r\n" @@ -1632,7 +1637,7 @@ Debug = true [stage-12] Running tests for Stage #12: dq3 [stage-12] Created RDB file with key-value pairs: "apple"="pineapple", "raspberry"="strawberry", "mango"="apple", "strawberry"="grape" -[stage-12] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3010936588 --dbfilename grape.rdb +[stage-12] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2321023724 --dbfilename grape.rdb [stage-12] client: $ redis-cli GET apple [stage-12] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\napple\r\n" [stage-12] client: Received bytes: "$9\r\npineapple\r\n" @@ -1659,19 +1664,19 @@ Debug = true [stage-11] Running tests for Stage #11: jw4 [stage-11] Created RDB file with 3 keys: ["orange" "banana" "pear"] -[stage-11] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2066294724 --dbfilename grape.rdb +[stage-11] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2091869705 --dbfilename grape.rdb [stage-11] client: $ redis-cli KEYS * [stage-11] client: Sent bytes: "*2\r\n$4\r\nKEYS\r\n$1\r\n*\r\n" -[stage-11] client: Received bytes: "*3\r\n$4\r\npear\r\n$6\r\norange\r\n$6\r\nbanana\r\n" -[stage-11] client: Received RESP array: ["pear", "orange", "banana"] -[stage-11] Received ["pear", "orange", "banana"] +[stage-11] client: Received bytes: "*3\r\n$4\r\npear\r\n$6\r\nbanana\r\n$6\r\norange\r\n" +[stage-11] client: Received RESP array: ["pear", "banana", "orange"] +[stage-11] Received ["pear", "banana", "orange"] [stage-11] Test passed. [stage-11] Terminating program [stage-11] Program terminated successfully [stage-10] Running tests for Stage #10: gc6 [stage-10] Created RDB file with single key-value pair: pineapple="blueberry" -[stage-10] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2827484836 --dbfilename mango.rdb +[stage-10] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1208672642 --dbfilename mango.rdb [stage-10] client: $ redis-cli GET pineapple [stage-10] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\npineapple\r\n" [stage-10] client: Received bytes: "$9\r\nblueberry\r\n" @@ -1683,7 +1688,7 @@ Debug = true [stage-9] Running tests for Stage #9: jz6 [stage-9] Created RDB file with single key: "apple" -[stage-9] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1497794988 --dbfilename mango.rdb +[stage-9] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles73015925 --dbfilename mango.rdb [stage-9] client: $ redis-cli KEYS * [stage-9] client: Sent bytes: "*2\r\n$4\r\nKEYS\r\n$1\r\n*\r\n" [stage-9] client: Received bytes: "*1\r\n$5\r\napple\r\n" @@ -1694,12 +1699,12 @@ Debug = true [stage-9] Program terminated successfully [stage-8] Running tests for Stage #8: zg5 -[stage-8] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles647011626 --dbfilename blueberry.rdb +[stage-8] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3503538548 --dbfilename blueberry.rdb [stage-8] client: $ redis-cli CONFIG GET dir [stage-8] client: Sent bytes: "*3\r\n$6\r\nCONFIG\r\n$3\r\nGET\r\n$3\r\ndir\r\n" -[stage-8] client: Received bytes: "*2\r\n$3\r\ndir\r\n$74\r\n/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles647011626\r\n" -[stage-8] client: Received RESP array: ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles647011626"] -[stage-8] Received ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles647011626"] +[stage-8] client: Received bytes: "*2\r\n$3\r\ndir\r\n$75\r\n/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3503538548\r\n" +[stage-8] client: Received RESP array: ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3503538548"] +[stage-8] Received ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3503538548"] [stage-8] Test passed. [stage-8] Terminating program [stage-8] Program terminated successfully @@ -1711,15 +1716,15 @@ Debug = true [stage-7] Received bytes: "+OK\r\n" [stage-7] Received RESP simple string: "OK" [stage-7] Received "OK" -[stage-7] Received OK at 15:42:18.902 -[stage-7] Fetching key "apple" at 15:42:18.902 (should not be expired) +[stage-7] Received OK at 22:20:21.189 +[stage-7] Fetching key "apple" at 22:20:21.189 (should not be expired) [stage-7] > GET apple [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\napple\r\n" [stage-7] Received bytes: "$6\r\nbanana\r\n" [stage-7] Received RESP bulk string: "banana" [stage-7] Received "banana" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "apple" at 15:42:19.004 (should be expired) +[stage-7] Fetching key "apple" at 22:20:21.295 (should be expired) [stage-7] > GET apple [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\napple\r\n" [stage-7] Received bytes: "$-1\r\n" diff --git a/internal/test_txn_tx_failure.go b/internal/test_txn_tx_failure.go index 408209f4..27a8c3aa 100644 --- a/internal/test_txn_tx_failure.go +++ b/internal/test_txn_tx_failure.go @@ -53,7 +53,9 @@ func testTxErr(stageHarness *test_case_harness.TestCaseHarness) error { {"INCR", key2}, }, ExpectedResponseArray: []resp_assertions.RESPAssertion{ - resp_assertions.NewErrorAssertion("ERR value is not an integer or out of range"), resp_assertions.NewIntegerAssertion(randomIntegerValue + 1)}, + resp_assertions.NewErrorAssertion("ERR value is not an integer or out of range"), + resp_assertions.NewIntegerAssertion(randomIntegerValue + 1), + }, } if err := transactionTestCase.RunAll(clients[0], logger); err != nil {