From 3d61157c43f6ebd7bc60e4b2fd37e36dfbcb195d Mon Sep 17 00:00:00 2001 From: Ryan Gang Date: Tue, 7 Jan 2025 19:06:41 +0530 Subject: [PATCH 1/7] feat: add GitHub Actions workflow for fixture regeneration --- .github/workflows/fixtures.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/fixtures.yml diff --git a/.github/workflows/fixtures.yml b/.github/workflows/fixtures.yml new file mode 100644 index 00000000..f362952a --- /dev/null +++ b/.github/workflows/fixtures.yml @@ -0,0 +1,18 @@ +name: Trigger Fixture Regeneration + +permissions: + contents: write + pull-requests: write + +on: + pull_request: + types: + - labeled + +jobs: + regenerate_fixtures: + if: github.event.label.name == 'regenerate-fixtures' + uses: codecrafters-io/tester-utils/.github/workflows/fixtures.yml@fixture-gen-action + with: + tester_repo: redis-tester + secrets: inherit From e60b9b57d16b9663f1db16cc35ec55d50d8b487d Mon Sep 17 00:00:00 2001 From: Ryan Gang Date: Tue, 7 Jan 2025 19:25:45 +0530 Subject: [PATCH 2/7] chore: streamline GitHub Actions workflow by replacing manual Redis setup with a dedicated action --- .github/workflows/test.yml | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4bbe0117..75edf79c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,29 +6,12 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Set up Go - uses: actions/setup-go@v1 - with: - go-version: 1.21.x - - # Required for tests - - name: Install Redis - run: |- - curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg - echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list - sudo apt-get update - sudo apt-get install redis - - - name: "Stop redis service" - run: sudo service redis-server stop - - - uses: actions/setup-python@v2 - with: - python-version: "3.x" # Version range or exact version of a Python version to use, using SemVer's version range syntax + - id: setup-env + name: Setup test environment + uses: codecrafters-io/codecrafters-action/.github/actions/redis-setup@ef5aeb9504e08cccfe71e1dbcf806fab3738019d - - run: make test + - name: Run tests + run: make test lint: runs-on: ubuntu-latest From 68be1b365753379db24d47fd486e0970569dc7ff Mon Sep 17 00:00:00 2001 From: Ryan Gang Date: Tue, 7 Jan 2025 19:28:45 +0530 Subject: [PATCH 3/7] test: increase iteration count in testPingPongMultiple for more comprehensive testing --- internal/test_ping_pong.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/test_ping_pong.go b/internal/test_ping_pong.go index ea05facc..7b8b0601 100644 --- a/internal/test_ping_pong.go +++ b/internal/test_ping_pong.go @@ -51,7 +51,7 @@ func testPingPongMultiple(stageHarness *test_case_harness.TestCaseHarness) error return err } - for i := 1; i <= 3; i++ { + for i := 1; i <= 10; i++ { if err := runPing(logger, client); err != nil { return err } From 580ae95fae3c651ebe3532d670d33ecd70dc7951 Mon Sep 17 00:00:00 2001 From: Ryan Gang Date: Tue, 7 Jan 2025 14:04:22 +0000 Subject: [PATCH 4/7] ci: add regenerated fixtures --- internal/test_helpers/fixtures/expiry/pass | 41 ++- .../fixtures/rdb-read-value-with-expiry/pass | 75 ++++-- internal/test_helpers/fixtures/repl-wait/pass | 239 ++++++++++-------- internal/test_helpers/fixtures/streams/pass | 197 +++++++++------ .../test_helpers/fixtures/transactions/pass | 201 +++++++++------ 5 files changed, 464 insertions(+), 289 deletions(-) diff --git a/internal/test_helpers/fixtures/expiry/pass b/internal/test_helpers/fixtures/expiry/pass index 50cac706..78c82e84 100644 --- a/internal/test_helpers/fixtures/expiry/pass +++ b/internal/test_helpers/fixtures/expiry/pass @@ -7,15 +7,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 13:28:48.453 -[stage-7] Fetching key "apple" at 13:28:48.454 (should not be expired) +[stage-7] Received OK at 14:03:49.373 +[stage-7] Fetching key "apple" at 14:03:49.373 (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: "$9\r\nblueberry\r\n" [stage-7] Received RESP bulk string: "blueberry" [stage-7] Received "blueberry" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "apple" at 13:28:48.557 (should be expired) +[stage-7] Fetching key "apple" at 14:03:49.476 (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" @@ -110,6 +110,41 @@ Debug = true [stage-3] client-1: Received bytes: "+PONG\r\n" [stage-3] client-1: Received RESP simple string: "PONG" [stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" [stage-3] Success, closing connection... [stage-3] Test passed. [stage-3] Terminating program diff --git a/internal/test_helpers/fixtures/rdb-read-value-with-expiry/pass b/internal/test_helpers/fixtures/rdb-read-value-with-expiry/pass index 2150dd72..0853fdcf 100644 --- a/internal/test_helpers/fixtures/rdb-read-value-with-expiry/pass +++ b/internal/test_helpers/fixtures/rdb-read-value-with-expiry/pass @@ -15,7 +15,7 @@ Debug = true [stage-13] 0070 | 70 6c 65 09 62 6c 75 65 62 65 72 72 79 ff 34 d0 | ple.blueberry.4. [stage-13] 0080 | 8c 58 51 4a 5d 62 0a | .XQJ]b. [stage-13]  -[stage-13] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles444689312 --dbfilename pear.rdb +[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2798978441 --dbfilename pear.rdb [stage-13] client: $ redis-cli GET orange [stage-13] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$6\r\norange\r\n" [stage-13] client: Received bytes: "$10\r\nstrawberry\r\n" @@ -40,17 +40,17 @@ Debug = true [stage-12] Hexdump of RDB file contents:  [stage-12] Idx | Hex | ASCII [stage-12] -----+-------------------------------------------------+----------------- -[stage-12] 0000 | 52 45 44 49 53 30 30 31 31 fa 09 72 65 64 69 73 | REDIS0011..redis -[stage-12] 0010 | 2d 76 65 72 05 37 2e 32 2e 30 fa 0a 72 65 64 69 | -ver.7.2.0..redi -[stage-12] 0020 | 73 2d 62 69 74 73 c0 40 fe 00 fb 05 00 00 05 67 | s-bits.@.......g +[stage-12] 0000 | 52 45 44 49 53 30 30 31 31 fa 0a 72 65 64 69 73 | REDIS0011..redis +[stage-12] 0010 | 2d 62 69 74 73 c0 40 fa 09 72 65 64 69 73 2d 76 | -bits.@..redis-v +[stage-12] 0020 | 65 72 05 37 2e 32 2e 30 fe 00 fb 05 00 00 05 67 | er.7.2.0.......g [stage-12] 0030 | 72 61 70 65 09 70 69 6e 65 61 70 70 6c 65 00 05 | rape.pineapple.. [stage-12] 0040 | 61 70 70 6c 65 09 72 61 73 70 62 65 72 72 79 00 | apple.raspberry. [stage-12] 0050 | 06 62 61 6e 61 6e 61 05 61 70 70 6c 65 00 05 6d | .banana.apple..m [stage-12] 0060 | 61 6e 67 6f 06 6f 72 61 6e 67 65 00 06 6f 72 61 | ango.orange..ora -[stage-12] 0070 | 6e 67 65 04 70 65 61 72 ff 33 20 d4 0d 23 b2 9b | nge.pear.3 ..#.. -[stage-12] 0080 | af 0a | .. +[stage-12] 0070 | 6e 67 65 04 70 65 61 72 ff db dd 70 78 d3 ab 98 | nge.pear...px... +[stage-12] 0080 | c3 0a | .. [stage-12]  -[stage-12] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3255364286 --dbfilename raspberry.rdb +[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3257820493 --dbfilename raspberry.rdb [stage-12] client: $ redis-cli GET grape [stage-12] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\ngrape\r\n" [stage-12] client: Received bytes: "$9\r\npineapple\r\n" @@ -93,12 +93,12 @@ Debug = true [stage-11] 0050 | 00 09 62 6c 75 65 62 65 72 72 79 04 70 65 61 72 | ..blueberry.pear [stage-11] 0060 | ff 5c f3 42 ee 46 08 a6 3f 0a | .\.B.F..?. [stage-11]  -[stage-11] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2441884045 --dbfilename blueberry.rdb +[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3843257580 --dbfilename blueberry.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$6\r\nbanana\r\n$5\r\napple\r\n$9\r\nblueberry\r\n" -[stage-11] client: Received RESP array: ["banana", "apple", "blueberry"] -[stage-11] Received ["banana", "apple", "blueberry"] +[stage-11] client: Received bytes: "*3\r\n$9\r\nblueberry\r\n$5\r\napple\r\n$6\r\nbanana\r\n" +[stage-11] client: Received RESP array: ["blueberry", "apple", "banana"] +[stage-11] Received ["blueberry", "apple", "banana"] [stage-11] Test passed. [stage-11] Terminating program [stage-11] Program terminated successfully @@ -114,7 +114,7 @@ Debug = true [stage-10] 0030 | 72 61 70 65 09 70 69 6e 65 61 70 70 6c 65 ff 12 | rape.pineapple.. [stage-10] 0040 | 7d 54 51 cd 7a 5c 8d 0a | }TQ.z\.. [stage-10]  -[stage-10] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3226033919 --dbfilename orange.rdb +[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles503682526 --dbfilename orange.rdb [stage-10] client: $ redis-cli GET grape [stage-10] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\ngrape\r\n" [stage-10] client: Received bytes: "$9\r\npineapple\r\n" @@ -135,7 +135,7 @@ Debug = true [stage-9] 0030 | 61 6e 67 6f 09 70 69 6e 65 61 70 70 6c 65 ff 0c | ango.pineapple.. [stage-9] 0040 | 1b cb 91 b2 ed f6 19 0a | ........ [stage-9]  -[stage-9] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1527538990 --dbfilename pear.rdb +[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles4192929347 --dbfilename pear.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\nmango\r\n" @@ -146,12 +146,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/rdbfiles2714192117 --dbfilename blueberry.rdb +[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1184377303 --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$75\r\n/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2714192117\r\n" -[stage-8] client: Received RESP array: ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2714192117"] -[stage-8] Received ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2714192117"] +[stage-8] client: Received bytes: "*2\r\n$3\r\ndir\r\n$23\r\n/tmp/rdbfiles1184377303\r\n" +[stage-8] client: Received RESP array: ["dir", "/tmp/rdbfiles1184377303"] +[stage-8] Received ["dir", "/tmp/rdbfiles1184377303"] [stage-8] Test passed. [stage-8] Terminating program [stage-8] Program terminated successfully @@ -163,15 +163,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 16:31:40.207 -[stage-7] Fetching key "strawberry" at 16:31:40.207 (should not be expired) +[stage-7] Received OK at 14:03:16.254 +[stage-7] Fetching key "strawberry" at 14:03:16.254 (should not be expired) [stage-7] > GET strawberry [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$10\r\nstrawberry\r\n" [stage-7] Received bytes: "$4\r\npear\r\n" [stage-7] Received RESP bulk string: "pear" [stage-7] Received "pear" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "strawberry" at 16:31:40.311 (should be expired) +[stage-7] Fetching key "strawberry" at 14:03:16.357 (should be expired) [stage-7] > GET strawberry [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$10\r\nstrawberry\r\n" [stage-7] Received bytes: "$-1\r\n" @@ -266,6 +266,41 @@ Debug = true [stage-3] client-1: Received bytes: "+PONG\r\n" [stage-3] client-1: Received RESP simple string: "PONG" [stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" [stage-3] Success, closing connection... [stage-3] Test passed. [stage-3] Terminating program diff --git a/internal/test_helpers/fixtures/repl-wait/pass b/internal/test_helpers/fixtures/repl-wait/pass index e23c7276..61603bca 100644 --- a/internal/test_helpers/fixtures/repl-wait/pass +++ b/internal/test_helpers/fixtures/repl-wait/pass @@ -21,11 +21,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-1: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1 0\r\n" -[stage-31] [handshake] replica-1: Received RESP simple string: "FULLRESYNC d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1 0" -[stage-31] [handshake] Received "FULLRESYNC d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1 0" +[stage-31] [handshake] replica-1: Received bytes: "+FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0\r\n" +[stage-31] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" +[stage-31] [handshake] Received "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x05o\x1fg\xfa\bused-mem\xc2\x10\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffUd\x1fn\xca,\x93y" +[stage-31] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2G4}g\xfa\bused-mem\xc2\xd0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68ee96b6e622b3dd2aa0dab292f391a50df4271c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xac\x13F\x97o\x1a\x94I" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 2 [stage-31] [handshake] replica-2: $ redis-cli PING @@ -45,11 +45,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-2: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1 0\r\n" -[stage-31] [handshake] replica-2: Received RESP simple string: "FULLRESYNC d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1 0" -[stage-31] [handshake] Received "FULLRESYNC d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1 0" +[stage-31] [handshake] replica-2: Received bytes: "+FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0\r\n" +[stage-31] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" +[stage-31] [handshake] Received "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x05o\x1fg\xfa\bused-mem\u00a0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x1e\x97\xb8>\xacH\xe7 " +[stage-31] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2G4}g\xfa\bused-mem\u0098\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68ee96b6e622b3dd2aa0dab292f391a50df4271c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa8\aoU\xc0K\n\x87" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 3 [stage-31] [handshake] replica-3: $ redis-cli PING @@ -69,11 +69,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-3: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1 0\r\n" -[stage-31] [handshake] replica-3: Received RESP simple string: "FULLRESYNC d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1 0" -[stage-31] [handshake] Received "FULLRESYNC d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1 0" +[stage-31] [handshake] replica-3: Received bytes: "+FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0\r\n" +[stage-31] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" +[stage-31] [handshake] Received "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x05o\x1fg\xfa\bused-mem\u00a0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff&\xb0 vE\x87p\x0e" +[stage-31] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2G4}g\xfa\bused-mem\xc2\xe0\x16\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68ee96b6e622b3dd2aa0dab292f391a50df4271c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xc8\n\n7\xf4\x98\x82\x04" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 4 [stage-31] [handshake] replica-4: $ redis-cli PING @@ -93,11 +93,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-4: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-4: Received bytes: "+FULLRESYNC d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1 0\r\n" -[stage-31] [handshake] replica-4: Received RESP simple string: "FULLRESYNC d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1 0" -[stage-31] [handshake] Received "FULLRESYNC d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1 0" +[stage-31] [handshake] replica-4: Received bytes: "+FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0\r\n" +[stage-31] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" +[stage-31] [handshake] Received "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x05o\x1fg\xfa\bused-mem°\x8b\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d1f9ee5fbfef72570f6ec6625c1b90c1f8bf87d1\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffⅡ\x01S\xfde\xa6" +[stage-31] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2G4}g\xfa\bused-mem\xc2(p\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68ee96b6e622b3dd2aa0dab292f391a50df4271c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xfc\x97\xe0ܧ\x1fk\xc6" [stage-31] [handshake] Received RDB file [stage-31] [test] client: $ redis-cli SET foo 123 [stage-31] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -214,7 +214,7 @@ Debug = true [stage-31] [test] replica-4: Not sending ACK to Master [stage-31] [test] client: Received bytes: ":3\r\n" [stage-31] [test] client: Received RESP integer: 3 -[stage-31] [test] WAIT command returned after 2102 ms +[stage-31] [test] WAIT command returned after 2088 ms [stage-31] Test passed. [stage-31] Terminating program [stage-31] Program terminated successfully @@ -240,11 +240,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-1: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0\r\n" -[stage-30] [handshake] replica-1: Received RESP simple string: "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" -[stage-30] [handshake] Received "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" +[stage-30] [handshake] replica-1: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" +[stage-30] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\bo\x1fg\xfa\bused-mem\xc20\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(ceb138d3d19a154d7b75162d32410f6a82ff0e63\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xbf\x03\xcc|\xfa\xa3\x8b\xbf" +[stage-30] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2I4}g\xfa\bused-mem\xc2\x10\xc8\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x03\x82\xf3\xcf\xfb0\xa8\x86" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 2 [stage-30] [handshake] replica-2: $ redis-cli PING @@ -264,11 +264,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-2: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0\r\n" -[stage-30] [handshake] replica-2: Received RESP simple string: "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" -[stage-30] [handshake] Received "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" +[stage-30] [handshake] replica-2: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" +[stage-30] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\bo\x1fg\xfa\bused-mem\xc2\xc0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(ceb138d3d19a154d7b75162d32410f6a82ff0e63\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x16\x16[{\x02\x0eE\n" +[stage-30] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2I4}g\xfa\bused-mem\xc2ؽ\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff'>\xca8\xb4\xce}\x02" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 3 [stage-30] [handshake] replica-3: $ redis-cli PING @@ -288,11 +288,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-3: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0\r\n" -[stage-30] [handshake] replica-3: Received RESP simple string: "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" -[stage-30] [handshake] Received "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" +[stage-30] [handshake] replica-3: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" +[stage-30] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\bo\x1fg\xfa\bused-mem\xc2\xc0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(ceb138d3d19a154d7b75162d32410f6a82ff0e63\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff.1\xc33\xeb\xc1\xd2$" +[stage-30] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2J4}g\xfa\bused-mem\xc2 \x17\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa9\xce\\\xed=\x10{\xf5" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 4 [stage-30] [handshake] replica-4: $ redis-cli PING @@ -312,11 +312,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-4: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-4: Received bytes: "+FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0\r\n" -[stage-30] [handshake] replica-4: Received RESP simple string: "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" -[stage-30] [handshake] Received "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" +[stage-30] [handshake] replica-4: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" +[stage-30] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\bo\x1fg\xfa\bused-mem\xc2Ћ\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(ceb138d3d19a154d7b75162d32410f6a82ff0e63\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xea\x04BD\xfd\xbbnj" +[stage-30] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2J4}g\xfa\bused-mem\xc2hp\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\a#;E\x8dn\xbe\n" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 5 [stage-30] [handshake] replica-5: $ redis-cli PING @@ -336,11 +336,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-5: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-5: Received bytes: "+FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0\r\n" -[stage-30] [handshake] replica-5: Received RESP simple string: "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" -[stage-30] [handshake] Received "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" +[stage-30] [handshake] replica-5: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" +[stage-30] [handshake] replica-5: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-5: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\bo\x1fg\xfa\bused-mem\xc2\xe0\xd6\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(ceb138d3d19a154d7b75162d32410f6a82ff0e63\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xeb\x83\x03\xa9\xc8\v\x17\xc6" +[stage-30] [handshake] replica-5: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2J4}g\xfa\bused-mem¸\xc9\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xe2\x11K\xfc\xce\r\xb5\xcf" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 6 [stage-30] [handshake] replica-6: $ redis-cli PING @@ -360,11 +360,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-6: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-6: Received bytes: "+FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0\r\n" -[stage-30] [handshake] replica-6: Received RESP simple string: "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" -[stage-30] [handshake] Received "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" +[stage-30] [handshake] replica-6: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" +[stage-30] [handshake] replica-6: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-6: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\bo\x1fg\xfa\bused-mem\xc2\xe0!\x14\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(ceb138d3d19a154d7b75162d32410f6a82ff0e63\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x87\xf9\xa3rhUG\xc6" +[stage-30] [handshake] replica-6: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2J4}g\xfa\bused-mem\xc2\x00#\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xe1\x16\xb0/R\xed_6" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 7 [stage-30] [handshake] replica-7: $ redis-cli PING @@ -384,11 +384,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-7: > PSYNC ? -1 [stage-30] [handshake] replica-7: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-30] [handshake] replica-7: Received bytes: "+FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0\r\n" -[stage-30] [handshake] replica-7: Received RESP simple string: "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" -[stage-30] [handshake] Received "FULLRESYNC ceb138d3d19a154d7b75162d32410f6a82ff0e63 0" +[stage-30] [handshake] replica-7: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" +[stage-30] [handshake] replica-7: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-7: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\bo\x1fg\xfa\bused-mem\xc2\xf0l\x14\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(ceb138d3d19a154d7b75162d32410f6a82ff0e63\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff8\xab\xbd\x1d\xdd\xc4:\xd6" +[stage-30] [handshake] replica-7: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2J4}g\xfa\bused-mem\xc2P|\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffr\xcb8\x8c|O1S" [stage-30] [handshake] Received RDB file [stage-30] [test] client: $ redis-cli WAIT 3 500 [stage-30] [test] client: Sent bytes: "*3\r\n$4\r\nWAIT\r\n$1\r\n3\r\n$3\r\n500\r\n" @@ -597,11 +597,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-1: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC 984adf0e4026b56d6e3a8d4a0422217beb818605 0\r\n" -[stage-25] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 984adf0e4026b56d6e3a8d4a0422217beb818605 0" -[stage-25] [handshake] Received "FULLRESYNC 984adf0e4026b56d6e3a8d4a0422217beb818605 0" +[stage-25] [handshake] replica-1: Received bytes: "+FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0\r\n" +[stage-25] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0" +[stage-25] [handshake] Received "FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\no\x1fg\xfa\bused-mem\xc2\x00S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(984adf0e4026b56d6e3a8d4a0422217beb818605\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x1f\xcb\x16\x01\x0e\x9a\xa8\x93" +[stage-25] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2K4}g\xfa\bused-mem\xc2X\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(27ed13c4f387e727bb0e37b95f189d2b86487bde\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x1c\xacz+1\xe4߉" [stage-25] [handshake] Received RDB file [stage-25] Creating replica: 2 [stage-25] [handshake] replica-2: $ redis-cli PING @@ -621,11 +621,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-2: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC 984adf0e4026b56d6e3a8d4a0422217beb818605 0\r\n" -[stage-25] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 984adf0e4026b56d6e3a8d4a0422217beb818605 0" -[stage-25] [handshake] Received "FULLRESYNC 984adf0e4026b56d6e3a8d4a0422217beb818605 0" +[stage-25] [handshake] replica-2: Received bytes: "+FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0\r\n" +[stage-25] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0" +[stage-25] [handshake] Received "FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\no\x1fg\xfa\bused-mem\xc2p:\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(984adf0e4026b56d6e3a8d4a0422217beb818605\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xe2\x06.P\xeel\x8e\x98" +[stage-25] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2K4}g\xfa\bused-mem\xc2\x10\x8b\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(27ed13c4f387e727bb0e37b95f189d2b86487bde\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff6\x1c]ԂE\xe0\x1f" [stage-25] [handshake] Received RDB file [stage-25] Creating replica: 3 [stage-25] [handshake] replica-3: $ redis-cli PING @@ -645,11 +645,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-3: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC 984adf0e4026b56d6e3a8d4a0422217beb818605 0\r\n" -[stage-25] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 984adf0e4026b56d6e3a8d4a0422217beb818605 0" -[stage-25] [handshake] Received "FULLRESYNC 984adf0e4026b56d6e3a8d4a0422217beb818605 0" +[stage-25] [handshake] replica-3: Received bytes: "+FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0\r\n" +[stage-25] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0" +[stage-25] [handshake] Received "FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\no\x1fg\xfa\bused-mem\u0080I\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(984adf0e4026b56d6e3a8d4a0422217beb818605\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x8a\xac\xbb9\xb6|O\xe2" +[stage-25] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2K4}g\xfa\bused-mem\xc2X \x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(27ed13c4f387e727bb0e37b95f189d2b86487bde\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff*\x92'\xa47ӷD" [stage-25] [handshake] Received RDB file [stage-25] [test] client: $ redis-cli SET foo 123 [stage-25] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -734,11 +734,11 @@ Debug = true [stage-24] [handshake] Received "OK" [stage-24] [handshake] replica: > PSYNC ? -1 [stage-24] [handshake] replica: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-24] [handshake] replica: Received bytes: "+FULLRESYNC cb3f5dd2b57952a9dcf3204ab6e9e842b2ca5857 0\r\n" -[stage-24] [handshake] replica: Received RESP simple string: "FULLRESYNC cb3f5dd2b57952a9dcf3204ab6e9e842b2ca5857 0" -[stage-24] [handshake] Received "FULLRESYNC cb3f5dd2b57952a9dcf3204ab6e9e842b2ca5857 0" +[stage-24] [handshake] replica: Received bytes: "+FULLRESYNC 209f01b368caea2a4f311276b437c5d0d47b528e 0\r\n" +[stage-24] [handshake] replica: Received RESP simple string: "FULLRESYNC 209f01b368caea2a4f311276b437c5d0d47b528e 0" +[stage-24] [handshake] Received "FULLRESYNC 209f01b368caea2a4f311276b437c5d0d47b528e 0" [stage-24] [handshake] Reading RDB file... -[stage-24] [handshake] replica: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\no\x1fg\xfa\bused-mem\xc2 S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(cb3f5dd2b57952a9dcf3204ab6e9e842b2ca5857\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\bvȢ\x82\xc3Ӽ" +[stage-24] [handshake] replica: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2L4}g\xfa\bused-mem\xc2\x18\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(209f01b368caea2a4f311276b437c5d0d47b528e\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x9eg\x8a\xce/\xf1\xbd'" [stage-24] [handshake] Received RDB file [stage-24] [test] client: $ redis-cli SET foo 123 [stage-24] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -793,11 +793,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 7506970034707f15207c790ce091a8bfebd87961 0\r\n" -[stage-23] client: Received RESP simple string: "FULLRESYNC 7506970034707f15207c790ce091a8bfebd87961 0" -[stage-23] Received "FULLRESYNC 7506970034707f15207c790ce091a8bfebd87961 0" +[stage-23] client: Received bytes: "+FULLRESYNC e8dce7caf85ae5d28f0f3aaa63b08555eda7467c 0\r\n" +[stage-23] client: Received RESP simple string: "FULLRESYNC e8dce7caf85ae5d28f0f3aaa63b08555eda7467c 0" +[stage-23] Received "FULLRESYNC e8dce7caf85ae5d28f0f3aaa63b08555eda7467c 0" [stage-23] Reading RDB file... -[stage-23] client: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\vo\x1fg\xfa\bused-mem\u0090\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(7506970034707f15207c790ce091a8bfebd87961\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\f'\xd2\xd4}\f\r\xe1" +[stage-23] client: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2L4}g\xfa\bused-mem\xc2\xd0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e8dce7caf85ae5d28f0f3aaa63b08555eda7467c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff{\xeex\x1b\xbcZ;%" [stage-23] Received RDB file [stage-23] Test passed. [stage-23] Terminating program @@ -822,9 +822,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 2ff64fb105fb3baffc433a4b612306214012c78b 0\r\n" -[stage-22] client: Received RESP simple string: "FULLRESYNC 2ff64fb105fb3baffc433a4b612306214012c78b 0" -[stage-22] Received "FULLRESYNC 2ff64fb105fb3baffc433a4b612306214012c78b 0" +[stage-22] client: Received bytes: "+FULLRESYNC 63e0fc4b414ebb707b5cf73398f66f4b7ede54c8 0\r\n" +[stage-22] client: Received RESP simple string: "FULLRESYNC 63e0fc4b414ebb707b5cf73398f66f4b7ede54c8 0" +[stage-22] Received "FULLRESYNC 63e0fc4b414ebb707b5cf73398f66f4b7ede54c8 0" [stage-22] Test passed. [stage-22] Terminating program [stage-22] Program terminated successfully @@ -923,9 +923,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:2fe8b7e591f4b37c11f29e812809a455ce7fc50d\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:2fe8b7e591f4b37c11f29e812809a455ce7fc50d\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:2fe8b7e591f4b37c11f29e812809a455ce7fc50d\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:74325622cb2bb11b0cf0d0ed1d6a374cac64c655\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:74325622cb2bb11b0cf0d0ed1d6a374cac64c655\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:74325622cb2bb11b0cf0d0ed1d6a374cac64c655\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. @@ -949,9 +949,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:9e43d04c9962b616b39c7ff0edc7f5557f410e78\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:9e43d04c9962b616b39c7ff0edc7f5557f410e78\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:9e43d04c9962b616b39c7ff0edc7f5557f410e78\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:f03693e649dc67e5ccb2007929c34cb04247e3ce\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:f03693e649dc67e5ccb2007929c34cb04247e3ce\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:f03693e649dc67e5ccb2007929c34cb04247e3ce\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 @@ -980,7 +980,7 @@ Debug = true [stage-13] 0070 | 70 69 6e 65 61 70 70 6c 65 06 62 61 6e 61 6e 61 | pineapple.banana [stage-13] 0080 | ff 98 42 4d 49 d1 3b 7b ed 0a | ..BMI.;{.. [stage-13]  -[stage-13] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3128804725 --dbfilename pear.rdb +[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3746736873 --dbfilename pear.rdb [stage-13] client: $ redis-cli GET blueberry [stage-13] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\nblueberry\r\n" [stage-13] client: Received bytes: "$9\r\nblueberry\r\n" @@ -1005,17 +1005,17 @@ Debug = true [stage-12] Hexdump of RDB file contents:  [stage-12] Idx | Hex | ASCII [stage-12] -----+-------------------------------------------------+----------------- -[stage-12] 0000 | 52 45 44 49 53 30 30 31 31 fa 0a 72 65 64 69 73 | REDIS0011..redis -[stage-12] 0010 | 2d 62 69 74 73 c0 40 fa 09 72 65 64 69 73 2d 76 | -bits.@..redis-v -[stage-12] 0020 | 65 72 05 37 2e 32 2e 30 fe 00 fb 05 00 00 05 67 | er.7.2.0.......g +[stage-12] 0000 | 52 45 44 49 53 30 30 31 31 fa 09 72 65 64 69 73 | REDIS0011..redis +[stage-12] 0010 | 2d 76 65 72 05 37 2e 32 2e 30 fa 0a 72 65 64 69 | -ver.7.2.0..redi +[stage-12] 0020 | 73 2d 62 69 74 73 c0 40 fe 00 fb 05 00 00 05 67 | s-bits.@.......g [stage-12] 0030 | 72 61 70 65 05 6d 61 6e 67 6f 00 06 6f 72 61 6e | rape.mango..oran [stage-12] 0040 | 67 65 06 62 61 6e 61 6e 61 00 09 62 6c 75 65 62 | ge.banana..blueb [stage-12] 0050 | 65 72 72 79 06 6f 72 61 6e 67 65 00 04 70 65 61 | erry.orange..pea [stage-12] 0060 | 72 05 67 72 61 70 65 00 06 62 61 6e 61 6e 61 09 | r.grape..banana. -[stage-12] 0070 | 62 6c 75 65 62 65 72 72 79 ff 53 3c eb fb 3b 60 | blueberry.S<..;` -[stage-12] 0080 | 00 5c 0a | .\. +[stage-12] 0070 | 62 6c 75 65 62 65 72 72 79 ff 03 5d d3 a4 75 38 | blueberry..]..u8 +[stage-12] 0080 | 83 47 0a | .G. [stage-12]  -[stage-12] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1294549396 --dbfilename mango.rdb +[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2631358348 --dbfilename mango.rdb [stage-12] client: $ redis-cli GET grape [stage-12] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\ngrape\r\n" [stage-12] client: Received bytes: "$5\r\nmango\r\n" @@ -1050,21 +1050,21 @@ Debug = true [stage-11] Hexdump of RDB file contents:  [stage-11] Idx | Hex | ASCII [stage-11] -----+-------------------------------------------------+----------------- -[stage-11] 0000 | 52 45 44 49 53 30 30 31 31 fa 09 72 65 64 69 73 | REDIS0011..redis -[stage-11] 0010 | 2d 76 65 72 05 37 2e 32 2e 30 fa 0a 72 65 64 69 | -ver.7.2.0..redi -[stage-11] 0020 | 73 2d 62 69 74 73 c0 40 fe 00 fb 04 00 00 09 72 | s-bits.@.......r +[stage-11] 0000 | 52 45 44 49 53 30 30 31 31 fa 0a 72 65 64 69 73 | REDIS0011..redis +[stage-11] 0010 | 2d 62 69 74 73 c0 40 fa 09 72 65 64 69 73 2d 76 | -bits.@..redis-v +[stage-11] 0020 | 65 72 05 37 2e 32 2e 30 fe 00 fb 04 00 00 09 72 | er.7.2.0.......r [stage-11] 0030 | 61 73 70 62 65 72 72 79 0a 73 74 72 61 77 62 65 | aspberry.strawbe [stage-11] 0040 | 72 72 79 00 09 62 6c 75 65 62 65 72 72 79 06 6f | rry..blueberry.o [stage-11] 0050 | 72 61 6e 67 65 00 05 61 70 70 6c 65 05 6d 61 6e | range..apple.man [stage-11] 0060 | 67 6f 00 06 6f 72 61 6e 67 65 05 61 70 70 6c 65 | go..orange.apple -[stage-11] 0070 | ff 3a b9 90 72 de 2c a4 3d 0a | .:..r.,.=. +[stage-11] 0070 | ff 2c 35 95 30 bc 53 08 8c 0a | .,5.0.S... [stage-11]  -[stage-11] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2816263476 --dbfilename grape.rdb +[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles182156059 --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: "*4\r\n$6\r\norange\r\n$5\r\napple\r\n$9\r\nblueberry\r\n$9\r\nraspberry\r\n" -[stage-11] client: Received RESP array: ["orange", "apple", "blueberry", "raspberry"] -[stage-11] Received ["orange", "apple", "blueberry", "raspberry"] +[stage-11] client: Received bytes: "*4\r\n$6\r\norange\r\n$9\r\nblueberry\r\n$9\r\nraspberry\r\n$5\r\napple\r\n" +[stage-11] client: Received RESP array: ["orange", "blueberry", "raspberry", "apple"] +[stage-11] Received ["orange", "blueberry", "raspberry", "apple"] [stage-11] Test passed. [stage-11] Terminating program [stage-11] Program terminated successfully @@ -1074,13 +1074,13 @@ Debug = true [stage-10] Hexdump of RDB file contents:  [stage-10] Idx | Hex | ASCII [stage-10] -----+-------------------------------------------------+----------------- -[stage-10] 0000 | 52 45 44 49 53 30 30 31 31 fa 09 72 65 64 69 73 | REDIS0011..redis -[stage-10] 0010 | 2d 76 65 72 05 37 2e 32 2e 30 fa 0a 72 65 64 69 | -ver.7.2.0..redi -[stage-10] 0020 | 73 2d 62 69 74 73 c0 40 fe 00 fb 01 00 00 09 62 | s-bits.@.......b +[stage-10] 0000 | 52 45 44 49 53 30 30 31 31 fa 0a 72 65 64 69 73 | REDIS0011..redis +[stage-10] 0010 | 2d 62 69 74 73 c0 40 fa 09 72 65 64 69 73 2d 76 | -bits.@..redis-v +[stage-10] 0020 | 65 72 05 37 2e 32 2e 30 fe 00 fb 01 00 00 09 62 | er.7.2.0.......b [stage-10] 0030 | 6c 75 65 62 65 72 72 79 09 72 61 73 70 62 65 72 | lueberry.raspber -[stage-10] 0040 | 72 79 ff e7 32 68 28 2c c5 26 d7 0a | ry..2h(,.&.. +[stage-10] 0040 | 72 79 ff 1c 00 77 32 d4 0b 28 5c 0a | ry...w2..(\. [stage-10]  -[stage-10] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3366981985 --dbfilename strawberry.rdb +[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1710653285 --dbfilename strawberry.rdb [stage-10] client: $ redis-cli GET blueberry [stage-10] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\nblueberry\r\n" [stage-10] client: Received bytes: "$9\r\nraspberry\r\n" @@ -1101,7 +1101,7 @@ Debug = true [stage-9] 0030 | 72 61 70 65 04 70 65 61 72 ff 3b d6 76 4a 40 88 | rape.pear.;.vJ@. [stage-9] 0040 | 6b 9a 0a | k.. [stage-9]  -[stage-9] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles872001605 --dbfilename orange.rdb +[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2129607126 --dbfilename orange.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\ngrape\r\n" @@ -1112,12 +1112,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/rdbfiles1433393649 --dbfilename raspberry.rdb +[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles686018463 --dbfilename raspberry.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$75\r\n/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1433393649\r\n" -[stage-8] client: Received RESP array: ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1433393649"] -[stage-8] Received ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1433393649"] +[stage-8] client: Received bytes: "*2\r\n$3\r\ndir\r\n$22\r\n/tmp/rdbfiles686018463\r\n" +[stage-8] client: Received RESP array: ["dir", "/tmp/rdbfiles686018463"] +[stage-8] Received ["dir", "/tmp/rdbfiles686018463"] [stage-8] Test passed. [stage-8] Terminating program [stage-8] Program terminated successfully @@ -1129,15 +1129,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 16:31:34.277 -[stage-7] Fetching key "mango" at 16:31:34.277 (should not be expired) +[stage-7] Received OK at 14:03:59.339 +[stage-7] Fetching key "mango" at 14:03:59.339 (should not be expired) [stage-7] > GET mango [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\nmango\r\n" [stage-7] Received bytes: "$6\r\norange\r\n" [stage-7] Received RESP bulk string: "orange" [stage-7] Received "orange" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "mango" at 16:31:34.380 (should be expired) +[stage-7] Fetching key "mango" at 14:03:59.442 (should be expired) [stage-7] > GET mango [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\nmango\r\n" [stage-7] Received bytes: "$-1\r\n" @@ -1232,6 +1232,41 @@ Debug = true [stage-3] client-1: Received bytes: "+PONG\r\n" [stage-3] client-1: Received RESP simple string: "PONG" [stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" [stage-3] Success, closing connection... [stage-3] Test passed. [stage-3] Terminating program diff --git a/internal/test_helpers/fixtures/streams/pass b/internal/test_helpers/fixtures/streams/pass index 4f3c8a79..89017385 100644 --- a/internal/test_helpers/fixtures/streams/pass +++ b/internal/test_helpers/fixtures/streams/pass @@ -216,9 +216,9 @@ Debug = true [stage-36] $ ./spawn_redis_server.sh [stage-36] client: $ redis-cli XADD mango * foo bar [stage-36] client: Sent bytes: "*5\r\n$4\r\nXADD\r\n$5\r\nmango\r\n$1\r\n*\r\n$3\r\nfoo\r\n$3\r\nbar\r\n" -[stage-36] client: Received bytes: "$15\r\n1730113307012-0\r\n" -[stage-36] client: Received RESP bulk string: "1730113307012-0" -[stage-36] Received "1730113307012-0" +[stage-36] client: Received bytes: "$15\r\n1736258602691-0\r\n" +[stage-36] client: Received RESP bulk string: "1736258602691-0" +[stage-36] Received "1736258602691-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. @@ -335,11 +335,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-1: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC ad6c11e69888e18b30918460d6219bc70d738b70 0\r\n" -[stage-31] [handshake] replica-1: Received RESP simple string: "FULLRESYNC ad6c11e69888e18b30918460d6219bc70d738b70 0" -[stage-31] [handshake] Received "FULLRESYNC ad6c11e69888e18b30918460d6219bc70d738b70 0" +[stage-31] [handshake] replica-1: Received bytes: "+FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0\r\n" +[stage-31] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" +[stage-31] [handshake] Received "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x1bo\x1fg\xfa\bused-mem\xc2\xd0\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(ad6c11e69888e18b30918460d6219bc70d738b70\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff'P\x95\xff\x80\xc2\x0f\xaf" +[stage-31] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2+4}g\xfa\bused-mem\u0090\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(4637be6a98d754e60d470bf89ea75d8776e81571\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x8b\xc8X\xc2n\xb0\xc8\x10" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 2 [stage-31] [handshake] replica-2: $ redis-cli PING @@ -359,11 +359,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-2: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC ad6c11e69888e18b30918460d6219bc70d738b70 0\r\n" -[stage-31] [handshake] replica-2: Received RESP simple string: "FULLRESYNC ad6c11e69888e18b30918460d6219bc70d738b70 0" -[stage-31] [handshake] Received "FULLRESYNC ad6c11e69888e18b30918460d6219bc70d738b70 0" +[stage-31] [handshake] replica-2: Received bytes: "+FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0\r\n" +[stage-31] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" +[stage-31] [handshake] Received "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x1bo\x1fg\xfa\bused-mem\xc2`\xf6\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(ad6c11e69888e18b30918460d6219bc70d738b70\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffXB(( U\"\x8c" +[stage-31] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2+4}g\xfa\bused-mem\xc2X\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(4637be6a98d754e60d470bf89ea75d8776e81571\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff \x82\x87\xf6\xaeTz," [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 3 [stage-31] [handshake] replica-3: $ redis-cli PING @@ -383,11 +383,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-3: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC ad6c11e69888e18b30918460d6219bc70d738b70 0\r\n" -[stage-31] [handshake] replica-3: Received RESP simple string: "FULLRESYNC ad6c11e69888e18b30918460d6219bc70d738b70 0" -[stage-31] [handshake] Received "FULLRESYNC ad6c11e69888e18b30918460d6219bc70d738b70 0" +[stage-31] [handshake] replica-3: Received bytes: "+FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0\r\n" +[stage-31] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" +[stage-31] [handshake] Received "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x1bo\x1fg\xfa\bused-mem\xc2`A\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(ad6c11e69888e18b30918460d6219bc70d738b70\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffa\xaa\xd1R\x83%\xec\x17" +[stage-31] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2+4}g\xfa\bused-mem\u00a0\x16\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(4637be6a98d754e60d470bf89ea75d8776e81571\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xef\xd1\x14b\xf52\xde]" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 4 [stage-31] [handshake] replica-4: $ redis-cli PING @@ -407,11 +407,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-4: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-4: Received bytes: "+FULLRESYNC ad6c11e69888e18b30918460d6219bc70d738b70 0\r\n" -[stage-31] [handshake] replica-4: Received RESP simple string: "FULLRESYNC ad6c11e69888e18b30918460d6219bc70d738b70 0" -[stage-31] [handshake] Received "FULLRESYNC ad6c11e69888e18b30918460d6219bc70d738b70 0" +[stage-31] [handshake] replica-4: Received bytes: "+FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0\r\n" +[stage-31] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" +[stage-31] [handshake] Received "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x1bo\x1fg\xfa\bused-mem\xc2p\x8c\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(ad6c11e69888e18b30918460d6219bc70d738b70\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xcd]e+\x18\xb8JK" +[stage-31] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2+4}g\xfa\bused-mem\xc2\xe8o\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(4637be6a98d754e60d470bf89ea75d8776e81571\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff4B)\x15\t_\x8c\xf9" [stage-31] [handshake] Received RDB file [stage-31] [test] client: $ redis-cli SET foo 123 [stage-31] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -528,7 +528,7 @@ Debug = true [stage-31] [test] replica-4: Not sending ACK to Master [stage-31] [test] client: Received bytes: ":3\r\n" [stage-31] [test] client: Received RESP integer: 3 -[stage-31] [test] WAIT command returned after 2092 ms +[stage-31] [test] WAIT command returned after 2095 ms [stage-31] Test passed. [stage-31] Terminating program [stage-31] Program terminated successfully @@ -554,11 +554,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-1: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC 6b5be3d2bb55b35481406075a4db5b44df8f1283 0\r\n" -[stage-30] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 6b5be3d2bb55b35481406075a4db5b44df8f1283 0" -[stage-30] [handshake] Received "FULLRESYNC 6b5be3d2bb55b35481406075a4db5b44df8f1283 0" +[stage-30] [handshake] replica-1: Received bytes: "+FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0\r\n" +[stage-30] [handshake] replica-1: Received RESP simple string: "FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0" +[stage-30] [handshake] Received "FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x1eo\x1fg\xfa\bused-mem\xc20\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(6b5be3d2bb55b35481406075a4db5b44df8f1283\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xe0\xf6K\xe4\"`;\xac" +[stage-30] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-4}g\xfa\bused-mem\xc20\xc8\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(bbb560079ccbb4d53be21e6076b0db923f56535e\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff,ZZ\x80\x11OwX" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 2 [stage-30] [handshake] replica-2: $ redis-cli PING @@ -578,11 +578,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-2: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC 6b5be3d2bb55b35481406075a4db5b44df8f1283 0\r\n" -[stage-30] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 6b5be3d2bb55b35481406075a4db5b44df8f1283 0" -[stage-30] [handshake] Received "FULLRESYNC 6b5be3d2bb55b35481406075a4db5b44df8f1283 0" +[stage-30] [handshake] replica-2: Received bytes: "+FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0\r\n" +[stage-30] [handshake] replica-2: Received RESP simple string: "FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0" +[stage-30] [handshake] Received "FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x1eo\x1fg\xfa\bused-mem\xc2\xc0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(6b5be3d2bb55b35481406075a4db5b44df8f1283\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffI\xe3\xdc\xe3\xda\xcd\xf5\x19" +[stage-30] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-4}g\xfa\bused-mem\xc2\xf8\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(bbb560079ccbb4d53be21e6076b0db923f56535e\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\b\xe6cw^\xb1\xa2\xdc" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 3 [stage-30] [handshake] replica-3: $ redis-cli PING @@ -602,11 +602,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-3: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC 6b5be3d2bb55b35481406075a4db5b44df8f1283 0\r\n" -[stage-30] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 6b5be3d2bb55b35481406075a4db5b44df8f1283 0" -[stage-30] [handshake] Received "FULLRESYNC 6b5be3d2bb55b35481406075a4db5b44df8f1283 0" +[stage-30] [handshake] replica-3: Received bytes: "+FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0\r\n" +[stage-30] [handshake] replica-3: Received RESP simple string: "FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0" +[stage-30] [handshake] Received "FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x1eo\x1fg\xfa\bused-mem\xc2\xc0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(6b5be3d2bb55b35481406075a4db5b44df8f1283\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffq\xc4D\xab3\x02b7" +[stage-30] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2.4}g\xfa\bused-mem\xc2@\x17\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(bbb560079ccbb4d53be21e6076b0db923f56535e\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffd\xf0\xc5\xf5I\xa6\x1e\xc7" [stage-30] [handshake] Received RDB file [stage-30] [test] client: $ redis-cli WAIT 3 500 [stage-30] [test] client: Sent bytes: "*3\r\n$4\r\nWAIT\r\n$1\r\n3\r\n$3\r\n500\r\n" @@ -810,11 +810,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-1: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC 869ef66b9f765e08fbb5408857559f9036e27197 0\r\n" -[stage-25] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 869ef66b9f765e08fbb5408857559f9036e27197 0" -[stage-25] [handshake] Received "FULLRESYNC 869ef66b9f765e08fbb5408857559f9036e27197 0" +[stage-25] [handshake] replica-1: Received bytes: "+FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0\r\n" +[stage-25] [handshake] replica-1: Received RESP simple string: "FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0" +[stage-25] [handshake] Received "FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2 o\x1fg\xfa\bused-mem\xc2@S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(869ef66b9f765e08fbb5408857559f9036e27197\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffl\x10\xfb\xdf9\xa8i\xd0" +[stage-25] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2/4}g\xfa\bused-mem\xc2\xd8\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e056de17993d25a2bd0e92b242e0cf43b513190d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xea\x03\x90e\x1a\xb1\xecs" [stage-25] [handshake] Received RDB file [stage-25] Creating replica: 2 [stage-25] [handshake] replica-2: $ redis-cli PING @@ -834,11 +834,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-2: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC 869ef66b9f765e08fbb5408857559f9036e27197 0\r\n" -[stage-25] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 869ef66b9f765e08fbb5408857559f9036e27197 0" -[stage-25] [handshake] Received "FULLRESYNC 869ef66b9f765e08fbb5408857559f9036e27197 0" +[stage-25] [handshake] replica-2: Received bytes: "+FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0\r\n" +[stage-25] [handshake] replica-2: Received RESP simple string: "FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0" +[stage-25] [handshake] Received "FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2 o\x1fg\xfa\bused-mem°:\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(869ef66b9f765e08fbb5408857559f9036e27197\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff>\x835x\xb6\xebc)" +[stage-25] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2/4}g\xfa\bused-mem\u0090\x03\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e056de17993d25a2bd0e92b242e0cf43b513190d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff'F\xe0\xd9U\xb5j\xb3" [stage-25] [handshake] Received RDB file [stage-25] Creating replica: 3 [stage-25] [handshake] replica-3: $ redis-cli PING @@ -858,11 +858,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-3: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC 869ef66b9f765e08fbb5408857559f9036e27197 0\r\n" -[stage-25] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 869ef66b9f765e08fbb5408857559f9036e27197 0" -[stage-25] [handshake] Received "FULLRESYNC 869ef66b9f765e08fbb5408857559f9036e27197 0" +[stage-25] [handshake] replica-3: Received bytes: "+FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0\r\n" +[stage-25] [handshake] replica-3: Received RESP simple string: "FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0" +[stage-25] [handshake] Received "FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2 o\x1fg\xfa\bused-mem\xc2\xc0I\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(869ef66b9f765e08fbb5408857559f9036e27197\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xf9wV\xe7\x81N\x8e\xa1" +[stage-25] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc204}g\xfa\bused-mem\xc2\xd8 \x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e056de17993d25a2bd0e92b242e0cf43b513190d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xb7\x9f\xb3t\v12\xe8" [stage-25] [handshake] Received RDB file [stage-25] [test] client: $ redis-cli SET foo 123 [stage-25] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -947,11 +947,11 @@ Debug = true [stage-24] [handshake] Received "OK" [stage-24] [handshake] replica: > PSYNC ? -1 [stage-24] [handshake] replica: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-24] [handshake] replica: Received bytes: "+FULLRESYNC e1f414d64033f41ae2e9c7056a8daa449cefd7e5 0\r\n" -[stage-24] [handshake] replica: Received RESP simple string: "FULLRESYNC e1f414d64033f41ae2e9c7056a8daa449cefd7e5 0" -[stage-24] [handshake] Received "FULLRESYNC e1f414d64033f41ae2e9c7056a8daa449cefd7e5 0" +[stage-24] [handshake] replica: Received bytes: "+FULLRESYNC 88ebc55d485612984e75374445f46b3cdc1c1fe0 0\r\n" +[stage-24] [handshake] replica: Received RESP simple string: "FULLRESYNC 88ebc55d485612984e75374445f46b3cdc1c1fe0 0" +[stage-24] [handshake] Received "FULLRESYNC 88ebc55d485612984e75374445f46b3cdc1c1fe0 0" [stage-24] [handshake] Reading RDB file... -[stage-24] [handshake] replica: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2 o\x1fg\xfa\bused-mem\xc2@S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e1f414d64033f41ae2e9c7056a8daa449cefd7e5\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xaf\xbcT\xe7\x9bG]L" +[stage-24] [handshake] replica: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc204}g\xfa\bused-mem\xc28\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(88ebc55d485612984e75374445f46b3cdc1c1fe0\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa8\xed\xe0 \xcd[\xf8x" [stage-24] [handshake] Received RDB file [stage-24] [test] client: $ redis-cli SET foo 123 [stage-24] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -1006,11 +1006,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 b57a6e53d681c762e48b4dcae7e4b6e2f7bcb953 0\r\n" -[stage-23] client: Received RESP simple string: "FULLRESYNC b57a6e53d681c762e48b4dcae7e4b6e2f7bcb953 0" -[stage-23] Received "FULLRESYNC b57a6e53d681c762e48b4dcae7e4b6e2f7bcb953 0" +[stage-23] client: Received bytes: "+FULLRESYNC 8fbb281c2a47de59ed50a8a26ddaf73360610997 0\r\n" +[stage-23] client: Received RESP simple string: "FULLRESYNC 8fbb281c2a47de59ed50a8a26ddaf73360610997 0" +[stage-23] Received "FULLRESYNC 8fbb281c2a47de59ed50a8a26ddaf73360610997 0" [stage-23] Reading RDB file... -[stage-23] client: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2!o\x1fg\xfa\bused-mem\xc2P\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b57a6e53d681c762e48b4dcae7e4b6e2f7bcb953\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xff\x1e\xc3\x11\xb6YC\xab" +[stage-23] client: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc204}g\xfa\bused-mem\xc2P\xc8\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(8fbb281c2a47de59ed50a8a26ddaf73360610997\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa9\u0091\xcb犃 " [stage-23] Received RDB file [stage-23] Test passed. [stage-23] Terminating program @@ -1035,9 +1035,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 3632ce506a5789830a0f11ad1eb68bf22e9c9c82 0\r\n" -[stage-22] client: Received RESP simple string: "FULLRESYNC 3632ce506a5789830a0f11ad1eb68bf22e9c9c82 0" -[stage-22] Received "FULLRESYNC 3632ce506a5789830a0f11ad1eb68bf22e9c9c82 0" +[stage-22] client: Received bytes: "+FULLRESYNC d26921c288e021624b3a2b044da991ac28671eb5 0\r\n" +[stage-22] client: Received RESP simple string: "FULLRESYNC d26921c288e021624b3a2b044da991ac28671eb5 0" +[stage-22] Received "FULLRESYNC d26921c288e021624b3a2b044da991ac28671eb5 0" [stage-22] Test passed. [stage-22] Terminating program [stage-22] Program terminated successfully @@ -1136,9 +1136,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:d7e26c2e0e9282cce0da357b8d26ec3ce2dfa884\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:d7e26c2e0e9282cce0da357b8d26ec3ce2dfa884\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:d7e26c2e0e9282cce0da357b8d26ec3ce2dfa884\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:d6a84ff39b1bcc9ee5f1a42bda52d8d3d895c635\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:d6a84ff39b1bcc9ee5f1a42bda52d8d3d895c635\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:d6a84ff39b1bcc9ee5f1a42bda52d8d3d895c635\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. @@ -1162,9 +1162,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:efde794870dd0f1a1b25c0dad0ea1f199edc3d62\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:efde794870dd0f1a1b25c0dad0ea1f199edc3d62\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:efde794870dd0f1a1b25c0dad0ea1f199edc3d62\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:7511e581396fc88e280737ba2f3800b349aae66e\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:7511e581396fc88e280737ba2f3800b349aae66e\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:7511e581396fc88e280737ba2f3800b349aae66e\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 @@ -1193,7 +1193,7 @@ Debug = true [stage-13] 0070 | 65 09 72 61 73 70 62 65 72 72 79 ff f7 d4 d3 00 | e.raspberry..... [stage-13] 0080 | ab 58 b4 13 0a | .X... [stage-13]  -[stage-13] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3293649888 --dbfilename grape.rdb +[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2406899246 --dbfilename grape.rdb [stage-13] client: $ redis-cli GET raspberry [stage-13] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\nraspberry\r\n" [stage-13] client: Received bytes: "$9\r\npineapple\r\n" @@ -1228,7 +1228,7 @@ Debug = true [stage-12] 0070 | 67 6f 09 62 6c 75 65 62 65 72 72 79 ff af 60 d1 | go.blueberry..`. [stage-12] 0080 | 2f 14 70 b8 8d 0a | /.p... [stage-12]  -[stage-12] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1165685106 --dbfilename strawberry.rdb +[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles247888172 --dbfilename strawberry.rdb [stage-12] client: $ redis-cli GET banana [stage-12] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$6\r\nbanana\r\n" [stage-12] client: Received bytes: "$5\r\ngrape\r\n" @@ -1273,12 +1273,12 @@ Debug = true [stage-11] 0070 | 70 65 09 72 61 73 70 62 65 72 72 79 ff 38 8d 90 | pe.raspberry.8.. [stage-11] 0080 | f3 22 1e 0f c4 0a | .".... [stage-11]  -[stage-11] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2437623542 --dbfilename raspberry.rdb +[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles399852681 --dbfilename raspberry.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: "*5\r\n$10\r\nstrawberry\r\n$5\r\ngrape\r\n$5\r\napple\r\n$6\r\nbanana\r\n$6\r\norange\r\n" -[stage-11] client: Received RESP array: ["strawberry", "grape", "apple", "banana", "orange"] -[stage-11] Received ["strawberry", "grape", "apple", "banana", "orange"] +[stage-11] client: Received bytes: "*5\r\n$5\r\napple\r\n$6\r\nbanana\r\n$10\r\nstrawberry\r\n$5\r\ngrape\r\n$6\r\norange\r\n" +[stage-11] client: Received RESP array: ["apple", "banana", "strawberry", "grape", "orange"] +[stage-11] Received ["apple", "banana", "strawberry", "grape", "orange"] [stage-11] Test passed. [stage-11] Terminating program [stage-11] Program terminated successfully @@ -1288,13 +1288,13 @@ Debug = true [stage-10] Hexdump of RDB file contents:  [stage-10] Idx | Hex | ASCII [stage-10] -----+-------------------------------------------------+----------------- -[stage-10] 0000 | 52 45 44 49 53 30 30 31 31 fa 0a 72 65 64 69 73 | REDIS0011..redis -[stage-10] 0010 | 2d 62 69 74 73 c0 40 fa 09 72 65 64 69 73 2d 76 | -bits.@..redis-v -[stage-10] 0020 | 65 72 05 37 2e 32 2e 30 fe 00 fb 01 00 00 09 72 | er.7.2.0.......r -[stage-10] 0030 | 61 73 70 62 65 72 72 79 04 70 65 61 72 ff 8e fd | aspberry.pear... -[stage-10] 0040 | 39 1a 82 3d b4 c0 0a | 9..=... +[stage-10] 0000 | 52 45 44 49 53 30 30 31 31 fa 09 72 65 64 69 73 | REDIS0011..redis +[stage-10] 0010 | 2d 76 65 72 05 37 2e 32 2e 30 fa 0a 72 65 64 69 | -ver.7.2.0..redi +[stage-10] 0020 | 73 2d 62 69 74 73 c0 40 fe 00 fb 01 00 00 09 72 | s-bits.@.......r +[stage-10] 0030 | 61 73 70 62 65 72 72 79 04 70 65 61 72 ff 64 d8 | aspberry.pear.d. +[stage-10] 0040 | a7 37 ce 1e 69 29 0a | .7..i). [stage-10]  -[stage-10] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles23166918 --dbfilename pear.rdb +[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1227263744 --dbfilename pear.rdb [stage-10] client: $ redis-cli GET raspberry [stage-10] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\nraspberry\r\n" [stage-10] client: Received bytes: "$4\r\npear\r\n" @@ -1315,7 +1315,7 @@ Debug = true [stage-9] 0030 | 72 61 6e 67 65 05 6d 61 6e 67 6f ff c7 77 bd 73 | range.mango..w.s [stage-9] 0040 | 84 b6 3a 5d 0a | ..:]. [stage-9]  -[stage-9] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3426670913 --dbfilename grape.rdb +[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2330623696 --dbfilename grape.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$6\r\norange\r\n" @@ -1326,12 +1326,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/rdbfiles2900771858 --dbfilename pear.rdb +[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1597263641 --dbfilename pear.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$75\r\n/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2900771858\r\n" -[stage-8] client: Received RESP array: ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2900771858"] -[stage-8] Received ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2900771858"] +[stage-8] client: Received bytes: "*2\r\n$3\r\ndir\r\n$23\r\n/tmp/rdbfiles1597263641\r\n" +[stage-8] client: Received RESP array: ["dir", "/tmp/rdbfiles1597263641"] +[stage-8] Received ["dir", "/tmp/rdbfiles1597263641"] [stage-8] Test passed. [stage-8] Terminating program [stage-8] Program terminated successfully @@ -1343,15 +1343,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 16:31:56.379 -[stage-7] Fetching key "pear" at 16:31:56.379 (should not be expired) +[stage-7] Received OK at 14:03:31.440 +[stage-7] Fetching key "pear" at 14:03:31.440 (should not be expired) [stage-7] > GET pear [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$4\r\npear\r\n" [stage-7] Received bytes: "$5\r\nmango\r\n" [stage-7] Received RESP bulk string: "mango" [stage-7] Received "mango" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "pear" at 16:31:56.482 (should be expired) +[stage-7] Fetching key "pear" at 14:03:31.543 (should be expired) [stage-7] > GET pear [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$4\r\npear\r\n" [stage-7] Received bytes: "$-1\r\n" @@ -1446,6 +1446,41 @@ Debug = true [stage-3] client-1: Received bytes: "+PONG\r\n" [stage-3] client-1: Received RESP simple string: "PONG" [stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" [stage-3] Success, closing connection... [stage-3] Test passed. [stage-3] Terminating program diff --git a/internal/test_helpers/fixtures/transactions/pass b/internal/test_helpers/fixtures/transactions/pass index e32e8023..b046a9da 100644 --- a/internal/test_helpers/fixtures/transactions/pass +++ b/internal/test_helpers/fixtures/transactions/pass @@ -607,9 +607,9 @@ Debug = true [stage-36] $ ./spawn_redis_server.sh [stage-36] client: $ redis-cli XADD pear * foo bar [stage-36] client: Sent bytes: "*5\r\n$4\r\nXADD\r\n$4\r\npear\r\n$1\r\n*\r\n$3\r\nfoo\r\n$3\r\nbar\r\n" -[stage-36] client: Received bytes: "$15\r\n1730113324541-0\r\n" -[stage-36] client: Received RESP bulk string: "1730113324541-0" -[stage-36] Received "1730113324541-0" +[stage-36] client: Received bytes: "$15\r\n1736258647147-0\r\n" +[stage-36] client: Received RESP bulk string: "1736258647147-0" +[stage-36] Received "1736258647147-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. @@ -726,11 +726,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-1: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC 1534bef91b562b2058f64e1daf1d21cfc4104cbd 0\r\n" -[stage-31] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 1534bef91b562b2058f64e1daf1d21cfc4104cbd 0" -[stage-31] [handshake] Received "FULLRESYNC 1534bef91b562b2058f64e1daf1d21cfc4104cbd 0" +[stage-31] [handshake] replica-1: Received bytes: "+FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0\r\n" +[stage-31] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" +[stage-31] [handshake] Received "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-o\x1fg\xfa\bused-mem\xc20\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1534bef91b562b2058f64e1daf1d21cfc4104cbd\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff9\x17m\xbeˤF\xf5" +[stage-31] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2W4}g\xfa\bused-mem\xc2\xf0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68486b588b96d959778cac87cb53b0c68830224c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffK\xbaqs\xeb\x92JL" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 2 [stage-31] [handshake] replica-2: $ redis-cli PING @@ -750,11 +750,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-2: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC 1534bef91b562b2058f64e1daf1d21cfc4104cbd 0\r\n" -[stage-31] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 1534bef91b562b2058f64e1daf1d21cfc4104cbd 0" -[stage-31] [handshake] Received "FULLRESYNC 1534bef91b562b2058f64e1daf1d21cfc4104cbd 0" +[stage-31] [handshake] replica-2: Received bytes: "+FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0\r\n" +[stage-31] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" +[stage-31] [handshake] Received "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-o\x1fg\xfa\bused-mem\xc2\xc0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1534bef91b562b2058f64e1daf1d21cfc4104cbd\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x90\x02\xfa\xb93\t\x88@" +[stage-31] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2W4}g\xfa\bused-mem¸\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68486b588b96d959778cac87cb53b0c68830224c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffO\xaeX\xb1D\xc3Ԃ" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 3 [stage-31] [handshake] replica-3: $ redis-cli PING @@ -774,11 +774,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-3: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC 1534bef91b562b2058f64e1daf1d21cfc4104cbd 0\r\n" -[stage-31] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 1534bef91b562b2058f64e1daf1d21cfc4104cbd 0" -[stage-31] [handshake] Received "FULLRESYNC 1534bef91b562b2058f64e1daf1d21cfc4104cbd 0" +[stage-31] [handshake] replica-3: Received bytes: "+FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0\r\n" +[stage-31] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" +[stage-31] [handshake] Received "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-o\x1fg\xfa\bused-mem\xc2\xc0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1534bef91b562b2058f64e1daf1d21cfc4104cbd\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa8%b\xf1\xda\xc6\x1fn" +[stage-31] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2W4}g\xfa\bused-mem\xc2\x00\x17\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68486b588b96d959778cac87cb53b0c68830224c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffW5\x80\xc7\r \xca\xd0" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 4 [stage-31] [handshake] replica-4: $ redis-cli PING @@ -798,11 +798,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-4: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-4: Received bytes: "+FULLRESYNC 1534bef91b562b2058f64e1daf1d21cfc4104cbd 0\r\n" -[stage-31] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 1534bef91b562b2058f64e1daf1d21cfc4104cbd 0" -[stage-31] [handshake] Received "FULLRESYNC 1534bef91b562b2058f64e1daf1d21cfc4104cbd 0" +[stage-31] [handshake] replica-4: Received bytes: "+FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0\r\n" +[stage-31] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" +[stage-31] [handshake] Received "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-o\x1fg\xfa\bused-mem\xc2Ћ\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(1534bef91b562b2058f64e1daf1d21cfc4104cbd\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffl\x10\xe3\x86̼\n\xc6" +[stage-31] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2W4}g\xfa\bused-mem\xc2Hp\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68486b588b96d959778cac87cb53b0c68830224c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xf9\xd8\xe7o\xbd^\x0f/" [stage-31] [handshake] Received RDB file [stage-31] [test] client: $ redis-cli SET foo 123 [stage-31] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -919,7 +919,7 @@ Debug = true [stage-31] [test] replica-4: Not sending ACK to Master [stage-31] [test] client: Received bytes: ":3\r\n" [stage-31] [test] client: Received RESP integer: 3 -[stage-31] [test] WAIT command returned after 2104 ms +[stage-31] [test] WAIT command returned after 2097 ms [stage-31] Test passed. [stage-31] Terminating program [stage-31] Program terminated successfully @@ -945,11 +945,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-1: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC 0c3f13899d8008f17cf6ea1286df0556203eb444 0\r\n" -[stage-30] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 0c3f13899d8008f17cf6ea1286df0556203eb444 0" -[stage-30] [handshake] Received "FULLRESYNC 0c3f13899d8008f17cf6ea1286df0556203eb444 0" +[stage-30] [handshake] replica-1: Received bytes: "+FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0\r\n" +[stage-30] [handshake] replica-1: Received RESP simple string: "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" +[stage-30] [handshake] Received "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2/o\x1fg\xfa\bused-mem\xc20\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(0c3f13899d8008f17cf6ea1286df0556203eb444\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xd2j\xeap\x1f\xb6\x12\xfa" +[stage-30] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2Z4}g\xfa\bused-mem\xc2\xf0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d6c37941fa6f669d9f4af4acafd130b5df565efb\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffQ\x9e\xcb:\f\x16\x92r" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 2 [stage-30] [handshake] replica-2: $ redis-cli PING @@ -969,11 +969,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-2: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC 0c3f13899d8008f17cf6ea1286df0556203eb444 0\r\n" -[stage-30] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 0c3f13899d8008f17cf6ea1286df0556203eb444 0" -[stage-30] [handshake] Received "FULLRESYNC 0c3f13899d8008f17cf6ea1286df0556203eb444 0" +[stage-30] [handshake] replica-2: Received bytes: "+FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0\r\n" +[stage-30] [handshake] replica-2: Received RESP simple string: "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" +[stage-30] [handshake] Received "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2/o\x1fg\xfa\bused-mem\xc2\xc0\xf5\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(0c3f13899d8008f17cf6ea1286df0556203eb444\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff{\x7f}w\xe7\x1b\xdcO" +[stage-30] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2Z4}g\xfa\bused-mem¸\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d6c37941fa6f669d9f4af4acafd130b5df565efb\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffU\x8a\xe2\xf8\xa3G\f\xbc" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 3 [stage-30] [handshake] replica-3: $ redis-cli PING @@ -993,11 +993,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-3: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC 0c3f13899d8008f17cf6ea1286df0556203eb444 0\r\n" -[stage-30] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 0c3f13899d8008f17cf6ea1286df0556203eb444 0" -[stage-30] [handshake] Received "FULLRESYNC 0c3f13899d8008f17cf6ea1286df0556203eb444 0" +[stage-30] [handshake] replica-3: Received bytes: "+FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0\r\n" +[stage-30] [handshake] replica-3: Received RESP simple string: "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" +[stage-30] [handshake] Received "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc20o\x1fg\xfa\bused-mem\xc2\xc0@\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(0c3f13899d8008f17cf6ea1286df0556203eb444\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff(\xfa\x9b\xa1\x19c\xfd7" +[stage-30] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2Z4}g\xfa\bused-mem\xc2\x00\x17\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d6c37941fa6f669d9f4af4acafd130b5df565efb\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffM\x11:\x8e\xea\xa4\x12\xee" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 4 [stage-30] [handshake] replica-4: $ redis-cli PING @@ -1017,11 +1017,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-4: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-4: Received bytes: "+FULLRESYNC 0c3f13899d8008f17cf6ea1286df0556203eb444 0\r\n" -[stage-30] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 0c3f13899d8008f17cf6ea1286df0556203eb444 0" -[stage-30] [handshake] Received "FULLRESYNC 0c3f13899d8008f17cf6ea1286df0556203eb444 0" +[stage-30] [handshake] replica-4: Received bytes: "+FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0\r\n" +[stage-30] [handshake] replica-4: Received RESP simple string: "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" +[stage-30] [handshake] Received "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-4: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc20o\x1fg\xfa\bused-mem\xc2Ћ\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(0c3f13899d8008f17cf6ea1286df0556203eb444\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xec\xcf\x1a\xd6\x0f\x19\xe8\x9f" +[stage-30] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2Z4}g\xfa\bused-mem\xc2Hp\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d6c37941fa6f669d9f4af4acafd130b5df565efb\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xe3\xfc]&Z\xda\xd7\x11" [stage-30] [handshake] Received RDB file [stage-30] [test] client: $ redis-cli WAIT 3 500 [stage-30] [test] client: Sent bytes: "*3\r\n$4\r\nWAIT\r\n$1\r\n3\r\n$3\r\n500\r\n" @@ -1230,11 +1230,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-1: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC 214d50af9891816295cb8af4098f9c2c4ac174dd 0\r\n" -[stage-25] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 214d50af9891816295cb8af4098f9c2c4ac174dd 0" -[stage-25] [handshake] Received "FULLRESYNC 214d50af9891816295cb8af4098f9c2c4ac174dd 0" +[stage-25] [handshake] replica-1: Received bytes: "+FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0\r\n" +[stage-25] [handshake] replica-1: Received RESP simple string: "FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0" +[stage-25] [handshake] Received "FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-1: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc22o\x1fg\xfa\bused-mem\xc2`S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(214d50af9891816295cb8af4098f9c2c4ac174dd\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x84R\xabw\x14\xf4\x8b\xe0" +[stage-25] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\\4}g\xfa\bused-mem\xc2X\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(aaa71c25b8096fb23521ac4a53337eeca6ffbc70\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff^\xb6\xa6\xb4\x16Q\x8fW" [stage-25] [handshake] Received RDB file [stage-25] Creating replica: 2 [stage-25] [handshake] replica-2: $ redis-cli PING @@ -1254,11 +1254,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-2: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC 214d50af9891816295cb8af4098f9c2c4ac174dd 0\r\n" -[stage-25] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 214d50af9891816295cb8af4098f9c2c4ac174dd 0" -[stage-25] [handshake] Received "FULLRESYNC 214d50af9891816295cb8af4098f9c2c4ac174dd 0" +[stage-25] [handshake] replica-2: Received bytes: "+FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0\r\n" +[stage-25] [handshake] replica-2: Received RESP simple string: "FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0" +[stage-25] [handshake] Received "FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-2: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc22o\x1fg\xfa\bused-mem\xc2\xd0:\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(214d50af9891816295cb8af4098f9c2c4ac174dd\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff4'U\x87\x05~;\xf5" +[stage-25] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\\4}g\xfa\bused-mem\xc2\x10\x03\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(aaa71c25b8096fb23521ac4a53337eeca6ffbc70\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x93\xf3\xd6\bYU\t\x97" [stage-25] [handshake] Received RDB file [stage-25] Creating replica: 3 [stage-25] [handshake] replica-3: $ redis-cli PING @@ -1278,11 +1278,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-3: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC 214d50af9891816295cb8af4098f9c2c4ac174dd 0\r\n" -[stage-25] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 214d50af9891816295cb8af4098f9c2c4ac174dd 0" -[stage-25] [handshake] Received "FULLRESYNC 214d50af9891816295cb8af4098f9c2c4ac174dd 0" +[stage-25] [handshake] replica-3: Received bytes: "+FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0\r\n" +[stage-25] [handshake] replica-3: Received RESP simple string: "FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0" +[stage-25] [handshake] Received "FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-3: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc22o\x1fg\xfa\bused-mem\xc2\xe0I\x13\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(214d50af9891816295cb8af4098f9c2c4ac174dd\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x115\x06O\xac\x12l\x91" +[stage-25] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\\4}g\xfa\bused-mem\xc2X \x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(aaa71c25b8096fb23521ac4a53337eeca6ffbc70\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffh\x88\xfb;\x10f\xe7\x9a" [stage-25] [handshake] Received RDB file [stage-25] [test] client: $ redis-cli SET foo 123 [stage-25] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -1367,11 +1367,11 @@ Debug = true [stage-24] [handshake] Received "OK" [stage-24] [handshake] replica: > PSYNC ? -1 [stage-24] [handshake] replica: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-24] [handshake] replica: Received bytes: "+FULLRESYNC c43c2a65e5b3cbcbe5fa359ba3a4746cc3daf222 0\r\n" -[stage-24] [handshake] replica: Received RESP simple string: "FULLRESYNC c43c2a65e5b3cbcbe5fa359ba3a4746cc3daf222 0" -[stage-24] [handshake] Received "FULLRESYNC c43c2a65e5b3cbcbe5fa359ba3a4746cc3daf222 0" +[stage-24] [handshake] replica: Received bytes: "+FULLRESYNC 27241e6415a41647bc3c3bc1af30299d41dfef39 0\r\n" +[stage-24] [handshake] replica: Received RESP simple string: "FULLRESYNC 27241e6415a41647bc3c3bc1af30299d41dfef39 0" +[stage-24] [handshake] Received "FULLRESYNC 27241e6415a41647bc3c3bc1af30299d41dfef39 0" [stage-24] [handshake] Reading RDB file... -[stage-24] [handshake] replica: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc22o\x1fg\xfa\bused-mem\u0080S\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(c43c2a65e5b3cbcbe5fa359ba3a4746cc3daf222\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x88\xb8\x92&\xbe3\xf6\x97" +[stage-24] [handshake] replica: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\\4}g\xfa\bused-mem\xc28\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(27241e6415a41647bc3c3bc1af30299d41dfef39\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff5%M2\xda\xdc\x1fp" [stage-24] [handshake] Received RDB file [stage-24] [test] client: $ redis-cli SET foo 123 [stage-24] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -1426,11 +1426,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 7ccbd0d11ddb2246a8d0c2f3284a06dd2b2403d6 0\r\n" -[stage-23] client: Received RESP simple string: "FULLRESYNC 7ccbd0d11ddb2246a8d0c2f3284a06dd2b2403d6 0" -[stage-23] Received "FULLRESYNC 7ccbd0d11ddb2246a8d0c2f3284a06dd2b2403d6 0" +[stage-23] client: Received bytes: "+FULLRESYNC 3d5e19e1b5f834933d291b5b502910bbc585ca3b 0\r\n" +[stage-23] client: Received RESP simple string: "FULLRESYNC 3d5e19e1b5f834933d291b5b502910bbc585ca3b 0" +[stage-23] Received "FULLRESYNC 3d5e19e1b5f834933d291b5b502910bbc585ca3b 0" [stage-23] Reading RDB file... -[stage-23] client: Received bytes: "$171\r\nREDIS0011\xfa\tredis-ver\x057.2.6\xfa\nredis-bits\xc0@\xfa\x05ctime\xc22o\x1fg\xfa\bused-mem\xc20\x0e\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(7ccbd0d11ddb2246a8d0c2f3284a06dd2b2403d6\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xff%n\xf3cU\xacx" +[stage-23] client: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2]4}g\xfa\bused-mem\xc2P\xc8\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(3d5e19e1b5f834933d291b5b502910bbc585ca3b\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffQ\x16\xf2\xe0ɠo\x9e" [stage-23] Received RDB file [stage-23] Test passed. [stage-23] Terminating program @@ -1455,9 +1455,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 fc419d05c674d53ac8981ada18b2ab005b39b2c6 0\r\n" -[stage-22] client: Received RESP simple string: "FULLRESYNC fc419d05c674d53ac8981ada18b2ab005b39b2c6 0" -[stage-22] Received "FULLRESYNC fc419d05c674d53ac8981ada18b2ab005b39b2c6 0" +[stage-22] client: Received bytes: "+FULLRESYNC f8ca1d72eb49231e8ca0d41c5e8f593ac5fce814 0\r\n" +[stage-22] client: Received RESP simple string: "FULLRESYNC f8ca1d72eb49231e8ca0d41c5e8f593ac5fce814 0" +[stage-22] Received "FULLRESYNC f8ca1d72eb49231e8ca0d41c5e8f593ac5fce814 0" [stage-22] Test passed. [stage-22] Terminating program [stage-22] Program terminated successfully @@ -1556,9 +1556,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:78befe8c744edef423f9fc3722630aaca8c0ba9e\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:78befe8c744edef423f9fc3722630aaca8c0ba9e\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:78befe8c744edef423f9fc3722630aaca8c0ba9e\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:ad61eb844c93f8835faec577f072e56a606b7cc3\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:ad61eb844c93f8835faec577f072e56a606b7cc3\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:ad61eb844c93f8835faec577f072e56a606b7cc3\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. @@ -1570,9 +1570,9 @@ Debug = true [stage-16] $ ./spawn_redis_server.sh --port 6380 --replicaof "localhost 6379" [stage-16] client: $ redis-cli INFO replication [stage-16] client: Sent bytes: "*2\r\n$4\r\nINFO\r\n$11\r\nreplication\r\n" -[stage-16] client: Received bytes: "$613\r\n# Replication\r\nrole:slave\r\nmaster_host:localhost\r\nmaster_port:6379\r\nmaster_link_status:down\r\nmaster_last_io_seconds_ago:-1\r\nmaster_sync_in_progress:0\r\nslave_read_repl_offset:0\r\nslave_repl_offset:0\r\nmaster_link_down_since_seconds:0\r\nslave_priority:100\r\nslave_read_only:1\r\nreplica_announced:1\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:75cd7bc10c49047e0d163660f3b90625b1af31dc\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:1\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:1\r\nrepl_backlog_histlen:0\r\n\r\n" -[stage-16] client: Received RESP bulk string: "# Replication\r\nrole:slave\r\nmaster_host:localhost\r\nmaster_port:6379\r\nmaster_link_status:down\r\nmaster_last_io_seconds_ago:-1\r\nmaster_sync_in_progress:0\r\nslave_read_repl_offset:0\r\nslave_repl_offset:0\r\nmaster_link_down_since_seconds:0\r\nslave_priority:100\r\nslave_read_only:1\r\nreplica_announced:1\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:75cd7bc10c49047e0d163660f3b90625b1af31dc\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:1\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:1\r\nrepl_backlog_histlen:0\r\n" -[stage-16] Received "# Replication\r\nrole:slave\r\nmaster_host:localhost\r\nmaster_port:6379\r\nmaster_link_status:down\r\nmaster_last_io_seconds_ago:-1\r\nmaster_sync_in_progress:0\r\nslave_read_repl_offset:0\r\nslave_repl_offset:0\r\nmaster_link_down_since_seconds:0\r\nslave_priority:100\r\nslave_read_only:1\r\nreplica_announced:1\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:75cd7bc10c49047e0d163660f3b90625b1af31dc\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:1\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:1\r\nrepl_backlog_histlen:0\r\n" +[stage-16] client: Received bytes: "$613\r\n# Replication\r\nrole:slave\r\nmaster_host:localhost\r\nmaster_port:6379\r\nmaster_link_status:down\r\nmaster_last_io_seconds_ago:-1\r\nmaster_sync_in_progress:0\r\nslave_read_repl_offset:0\r\nslave_repl_offset:0\r\nmaster_link_down_since_seconds:1\r\nslave_priority:100\r\nslave_read_only:1\r\nreplica_announced:1\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:75cd7bc10c49047e0d163660f3b90625b1af31dc\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:1\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:1\r\nrepl_backlog_histlen:0\r\n\r\n" +[stage-16] client: Received RESP bulk string: "# Replication\r\nrole:slave\r\nmaster_host:localhost\r\nmaster_port:6379\r\nmaster_link_status:down\r\nmaster_last_io_seconds_ago:-1\r\nmaster_sync_in_progress:0\r\nslave_read_repl_offset:0\r\nslave_repl_offset:0\r\nmaster_link_down_since_seconds:1\r\nslave_priority:100\r\nslave_read_only:1\r\nreplica_announced:1\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:75cd7bc10c49047e0d163660f3b90625b1af31dc\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:1\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:1\r\nrepl_backlog_histlen:0\r\n" +[stage-16] Received "# Replication\r\nrole:slave\r\nmaster_host:localhost\r\nmaster_port:6379\r\nmaster_link_status:down\r\nmaster_last_io_seconds_ago:-1\r\nmaster_sync_in_progress:0\r\nslave_read_repl_offset:0\r\nslave_repl_offset:0\r\nmaster_link_down_since_seconds:1\r\nslave_priority:100\r\nslave_read_only:1\r\nreplica_announced:1\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:75cd7bc10c49047e0d163660f3b90625b1af31dc\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:1\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:1\r\nrepl_backlog_histlen:0\r\n" [stage-16] Found role:slave in response. [stage-16] Test passed. [stage-16] Terminating program @@ -1582,9 +1582,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:74cde44f9bbd349e7ed001ac28b3f4c1f75280e7\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:74cde44f9bbd349e7ed001ac28b3f4c1f75280e7\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:74cde44f9bbd349e7ed001ac28b3f4c1f75280e7\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:1e23e59f69736166de6a4979cd99c17b7c766171\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:1e23e59f69736166de6a4979cd99c17b7c766171\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:1e23e59f69736166de6a4979cd99c17b7c766171\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 @@ -1615,7 +1615,7 @@ Debug = true [stage-13] 0090 | 72 79 09 72 61 73 70 62 65 72 72 79 ff 61 0a a8 | ry.raspberry.a.. [stage-13] 00a0 | 81 34 4f 53 cf 0a | .4OS.. [stage-13]  -[stage-13] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1270492762 --dbfilename banana.rdb +[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2734363899 --dbfilename banana.rdb [stage-13] client: $ redis-cli GET orange [stage-13] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$6\r\norange\r\n" [stage-13] client: Received bytes: "$-1\r\n" @@ -1654,7 +1654,7 @@ Debug = true [stage-12] 0060 | 61 6e 67 6f 09 70 69 6e 65 61 70 70 6c 65 ff e3 | ango.pineapple.. [stage-12] 0070 | 11 39 86 b8 ac e4 be 0a | .9...... [stage-12]  -[stage-12] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3378448787 --dbfilename raspberry.rdb +[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles944402357 --dbfilename raspberry.rdb [stage-12] client: $ redis-cli GET pineapple [stage-12] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\npineapple\r\n" [stage-12] client: Received bytes: "$9\r\nraspberry\r\n" @@ -1692,12 +1692,12 @@ Debug = true [stage-11] 0050 | 67 6f 06 6f 72 61 6e 67 65 ff dc 4d 99 81 37 bf | go.orange..M..7. [stage-11] 0060 | 76 19 0a | v.. [stage-11]  -[stage-11] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1923482980 --dbfilename pineapple.rdb +[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles803148407 --dbfilename pineapple.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$5\r\nmango\r\n$5\r\ngrape\r\n$5\r\napple\r\n" -[stage-11] client: Received RESP array: ["mango", "grape", "apple"] -[stage-11] Received ["mango", "grape", "apple"] +[stage-11] client: Received bytes: "*3\r\n$5\r\ngrape\r\n$5\r\nmango\r\n$5\r\napple\r\n" +[stage-11] client: Received RESP array: ["grape", "mango", "apple"] +[stage-11] Received ["grape", "mango", "apple"] [stage-11] Test passed. [stage-11] Terminating program [stage-11] Program terminated successfully @@ -1713,7 +1713,7 @@ Debug = true [stage-10] 0030 | 61 73 70 62 65 72 72 79 06 62 61 6e 61 6e 61 ff | aspberry.banana. [stage-10] 0040 | ef 79 f1 21 83 dd e4 16 0a | .y.!..... [stage-10]  -[stage-10] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2512970542 --dbfilename grape.rdb +[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2157233406 --dbfilename grape.rdb [stage-10] client: $ redis-cli GET raspberry [stage-10] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\nraspberry\r\n" [stage-10] client: Received bytes: "$6\r\nbanana\r\n" @@ -1734,7 +1734,7 @@ Debug = true [stage-9] 0030 | 61 73 70 62 65 72 72 79 06 6f 72 61 6e 67 65 ff | aspberry.orange. [stage-9] 0040 | d2 ff 75 36 a2 bc 20 ed 0a | ..u6.. .. [stage-9]  -[stage-9] $ ./spawn_redis_server.sh --dir /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2449095305 --dbfilename strawberry.rdb +[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles877331780 --dbfilename strawberry.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$9\r\nraspberry\r\n" @@ -1745,12 +1745,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/rdbfiles3410147028 --dbfilename banana.rdb +[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3447160973 --dbfilename banana.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$75\r\n/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3410147028\r\n" -[stage-8] client: Received RESP array: ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3410147028"] -[stage-8] Received ["dir", "/private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3410147028"] +[stage-8] client: Received bytes: "*2\r\n$3\r\ndir\r\n$23\r\n/tmp/rdbfiles3447160973\r\n" +[stage-8] client: Received RESP array: ["dir", "/tmp/rdbfiles3447160973"] +[stage-8] Received ["dir", "/tmp/rdbfiles3447160973"] [stage-8] Test passed. [stage-8] Terminating program [stage-8] Program terminated successfully @@ -1762,15 +1762,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 16:32:14.021 -[stage-7] Fetching key "apple" at 16:32:14.021 (should not be expired) +[stage-7] Received OK at 14:04:15.974 +[stage-7] Fetching key "apple" at 14:04:15.974 (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: "$10\r\nstrawberry\r\n" [stage-7] Received RESP bulk string: "strawberry" [stage-7] Received "strawberry" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "apple" at 16:32:14.124 (should be expired) +[stage-7] Fetching key "apple" at 14:04:16.077 (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" @@ -1865,6 +1865,41 @@ Debug = true [stage-3] client-1: Received bytes: "+PONG\r\n" [stage-3] client-1: Received RESP simple string: "PONG" [stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" +[stage-3] client-1: > PING +[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" +[stage-3] client-1: Received bytes: "+PONG\r\n" +[stage-3] client-1: Received RESP simple string: "PONG" +[stage-3] Received "PONG" [stage-3] Success, closing connection... [stage-3] Test passed. [stage-3] Terminating program From 4d2ececcd9484bc47933bc946d7ea176b3c92661 Mon Sep 17 00:00:00 2001 From: Ryan Gang Date: Tue, 7 Jan 2025 19:33:32 +0530 Subject: [PATCH 5/7] revert: changes to ping pong count --- internal/test_ping_pong.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/test_ping_pong.go b/internal/test_ping_pong.go index 7b8b0601..ea05facc 100644 --- a/internal/test_ping_pong.go +++ b/internal/test_ping_pong.go @@ -51,7 +51,7 @@ func testPingPongMultiple(stageHarness *test_case_harness.TestCaseHarness) error return err } - for i := 1; i <= 10; i++ { + for i := 1; i <= 3; i++ { if err := runPing(logger, client); err != nil { return err } From 093d8a69b453f550d15db1c809d2e63e97ad8bae Mon Sep 17 00:00:00 2001 From: Ryan Gang Date: Tue, 7 Jan 2025 23:23:45 +0530 Subject: [PATCH 6/7] ci: update fixture regeneration action to use the master branch --- .github/workflows/fixtures.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fixtures.yml b/.github/workflows/fixtures.yml index f362952a..c32d5527 100644 --- a/.github/workflows/fixtures.yml +++ b/.github/workflows/fixtures.yml @@ -12,7 +12,7 @@ on: jobs: regenerate_fixtures: if: github.event.label.name == 'regenerate-fixtures' - uses: codecrafters-io/tester-utils/.github/workflows/fixtures.yml@fixture-gen-action + uses: codecrafters-io/tester-utils/.github/workflows/fixtures.yml@master with: tester_repo: redis-tester secrets: inherit From 40f6b40d8ed8ad407ca5cda454b080076f7b7a49 Mon Sep 17 00:00:00 2001 From: Ryan Gang Date: Tue, 7 Jan 2025 17:58:27 +0000 Subject: [PATCH 7/7] ci: add regenerated fixtures --- internal/test_helpers/fixtures/expiry/pass | 41 +--- .../fixtures/rdb-read-value-with-expiry/pass | 69 ++---- internal/test_helpers/fixtures/repl-wait/pass | 229 ++++++++---------- internal/test_helpers/fixtures/streams/pass | 187 ++++++-------- .../test_helpers/fixtures/transactions/pass | 201 +++++++-------- 5 files changed, 276 insertions(+), 451 deletions(-) diff --git a/internal/test_helpers/fixtures/expiry/pass b/internal/test_helpers/fixtures/expiry/pass index 78c82e84..f83d1638 100644 --- a/internal/test_helpers/fixtures/expiry/pass +++ b/internal/test_helpers/fixtures/expiry/pass @@ -7,15 +7,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 14:03:49.373 -[stage-7] Fetching key "apple" at 14:03:49.373 (should not be expired) +[stage-7] Received OK at 17:57:54.074 +[stage-7] Fetching key "apple" at 17:57:54.074 (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: "$9\r\nblueberry\r\n" [stage-7] Received RESP bulk string: "blueberry" [stage-7] Received "blueberry" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "apple" at 14:03:49.476 (should be expired) +[stage-7] Fetching key "apple" at 17:57:54.176 (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" @@ -110,41 +110,6 @@ Debug = true [stage-3] client-1: Received bytes: "+PONG\r\n" [stage-3] client-1: Received RESP simple string: "PONG" [stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" [stage-3] Success, closing connection... [stage-3] Test passed. [stage-3] Terminating program diff --git a/internal/test_helpers/fixtures/rdb-read-value-with-expiry/pass b/internal/test_helpers/fixtures/rdb-read-value-with-expiry/pass index 0853fdcf..5f68ebc4 100644 --- a/internal/test_helpers/fixtures/rdb-read-value-with-expiry/pass +++ b/internal/test_helpers/fixtures/rdb-read-value-with-expiry/pass @@ -15,7 +15,7 @@ Debug = true [stage-13] 0070 | 70 6c 65 09 62 6c 75 65 62 65 72 72 79 ff 34 d0 | ple.blueberry.4. [stage-13] 0080 | 8c 58 51 4a 5d 62 0a | .XQJ]b. [stage-13]  -[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2798978441 --dbfilename pear.rdb +[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3993504912 --dbfilename pear.rdb [stage-13] client: $ redis-cli GET orange [stage-13] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$6\r\norange\r\n" [stage-13] client: Received bytes: "$10\r\nstrawberry\r\n" @@ -40,17 +40,17 @@ Debug = true [stage-12] Hexdump of RDB file contents:  [stage-12] Idx | Hex | ASCII [stage-12] -----+-------------------------------------------------+----------------- -[stage-12] 0000 | 52 45 44 49 53 30 30 31 31 fa 0a 72 65 64 69 73 | REDIS0011..redis -[stage-12] 0010 | 2d 62 69 74 73 c0 40 fa 09 72 65 64 69 73 2d 76 | -bits.@..redis-v -[stage-12] 0020 | 65 72 05 37 2e 32 2e 30 fe 00 fb 05 00 00 05 67 | er.7.2.0.......g +[stage-12] 0000 | 52 45 44 49 53 30 30 31 31 fa 09 72 65 64 69 73 | REDIS0011..redis +[stage-12] 0010 | 2d 76 65 72 05 37 2e 32 2e 30 fa 0a 72 65 64 69 | -ver.7.2.0..redi +[stage-12] 0020 | 73 2d 62 69 74 73 c0 40 fe 00 fb 05 00 00 05 67 | s-bits.@.......g [stage-12] 0030 | 72 61 70 65 09 70 69 6e 65 61 70 70 6c 65 00 05 | rape.pineapple.. [stage-12] 0040 | 61 70 70 6c 65 09 72 61 73 70 62 65 72 72 79 00 | apple.raspberry. [stage-12] 0050 | 06 62 61 6e 61 6e 61 05 61 70 70 6c 65 00 05 6d | .banana.apple..m [stage-12] 0060 | 61 6e 67 6f 06 6f 72 61 6e 67 65 00 06 6f 72 61 | ango.orange..ora -[stage-12] 0070 | 6e 67 65 04 70 65 61 72 ff db dd 70 78 d3 ab 98 | nge.pear...px... -[stage-12] 0080 | c3 0a | .. +[stage-12] 0070 | 6e 67 65 04 70 65 61 72 ff 33 20 d4 0d 23 b2 9b | nge.pear.3 ..#.. +[stage-12] 0080 | af 0a | .. [stage-12]  -[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3257820493 --dbfilename raspberry.rdb +[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles523278937 --dbfilename raspberry.rdb [stage-12] client: $ redis-cli GET grape [stage-12] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\ngrape\r\n" [stage-12] client: Received bytes: "$9\r\npineapple\r\n" @@ -93,7 +93,7 @@ Debug = true [stage-11] 0050 | 00 09 62 6c 75 65 62 65 72 72 79 04 70 65 61 72 | ..blueberry.pear [stage-11] 0060 | ff 5c f3 42 ee 46 08 a6 3f 0a | .\.B.F..?. [stage-11]  -[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3843257580 --dbfilename blueberry.rdb +[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles134944817 --dbfilename blueberry.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$9\r\nblueberry\r\n$5\r\napple\r\n$6\r\nbanana\r\n" @@ -114,7 +114,7 @@ Debug = true [stage-10] 0030 | 72 61 70 65 09 70 69 6e 65 61 70 70 6c 65 ff 12 | rape.pineapple.. [stage-10] 0040 | 7d 54 51 cd 7a 5c 8d 0a | }TQ.z\.. [stage-10]  -[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles503682526 --dbfilename orange.rdb +[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles88667885 --dbfilename orange.rdb [stage-10] client: $ redis-cli GET grape [stage-10] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\ngrape\r\n" [stage-10] client: Received bytes: "$9\r\npineapple\r\n" @@ -135,7 +135,7 @@ Debug = true [stage-9] 0030 | 61 6e 67 6f 09 70 69 6e 65 61 70 70 6c 65 ff 0c | ango.pineapple.. [stage-9] 0040 | 1b cb 91 b2 ed f6 19 0a | ........ [stage-9]  -[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles4192929347 --dbfilename pear.rdb +[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2978787751 --dbfilename pear.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\nmango\r\n" @@ -146,12 +146,12 @@ Debug = true [stage-9] Program terminated successfully [stage-8] Running tests for Stage #8: zg5 -[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1184377303 --dbfilename blueberry.rdb +[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3829876670 --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$23\r\n/tmp/rdbfiles1184377303\r\n" -[stage-8] client: Received RESP array: ["dir", "/tmp/rdbfiles1184377303"] -[stage-8] Received ["dir", "/tmp/rdbfiles1184377303"] +[stage-8] client: Received bytes: "*2\r\n$3\r\ndir\r\n$23\r\n/tmp/rdbfiles3829876670\r\n" +[stage-8] client: Received RESP array: ["dir", "/tmp/rdbfiles3829876670"] +[stage-8] Received ["dir", "/tmp/rdbfiles3829876670"] [stage-8] Test passed. [stage-8] Terminating program [stage-8] Program terminated successfully @@ -163,15 +163,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 14:03:16.254 -[stage-7] Fetching key "strawberry" at 14:03:16.254 (should not be expired) +[stage-7] Received OK at 17:57:56.547 +[stage-7] Fetching key "strawberry" at 17:57:56.547 (should not be expired) [stage-7] > GET strawberry [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$10\r\nstrawberry\r\n" [stage-7] Received bytes: "$4\r\npear\r\n" [stage-7] Received RESP bulk string: "pear" [stage-7] Received "pear" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "strawberry" at 14:03:16.357 (should be expired) +[stage-7] Fetching key "strawberry" at 17:57:56.650 (should be expired) [stage-7] > GET strawberry [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$10\r\nstrawberry\r\n" [stage-7] Received bytes: "$-1\r\n" @@ -266,41 +266,6 @@ Debug = true [stage-3] client-1: Received bytes: "+PONG\r\n" [stage-3] client-1: Received RESP simple string: "PONG" [stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" [stage-3] Success, closing connection... [stage-3] Test passed. [stage-3] Terminating program diff --git a/internal/test_helpers/fixtures/repl-wait/pass b/internal/test_helpers/fixtures/repl-wait/pass index 61603bca..64d2c6a2 100644 --- a/internal/test_helpers/fixtures/repl-wait/pass +++ b/internal/test_helpers/fixtures/repl-wait/pass @@ -21,11 +21,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-1: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0\r\n" -[stage-31] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" -[stage-31] [handshake] Received "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" +[stage-31] [handshake] replica-1: Received bytes: "+FULLRESYNC 86a8150ed3a641fdbddcc957472c149a976e7a0c 0\r\n" +[stage-31] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 86a8150ed3a641fdbddcc957472c149a976e7a0c 0" +[stage-31] [handshake] Received "FULLRESYNC 86a8150ed3a641fdbddcc957472c149a976e7a0c 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2G4}g\xfa\bused-mem\xc2\xd0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68ee96b6e622b3dd2aa0dab292f391a50df4271c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xac\x13F\x97o\x1a\x94I" +[stage-31] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2*k}g\xfa\bused-mem\xc2\xf0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(86a8150ed3a641fdbddcc957472c149a976e7a0c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffu%%\r\xd6F\xee\x8b" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 2 [stage-31] [handshake] replica-2: $ redis-cli PING @@ -45,11 +45,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-2: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0\r\n" -[stage-31] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" -[stage-31] [handshake] Received "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" +[stage-31] [handshake] replica-2: Received bytes: "+FULLRESYNC 86a8150ed3a641fdbddcc957472c149a976e7a0c 0\r\n" +[stage-31] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 86a8150ed3a641fdbddcc957472c149a976e7a0c 0" +[stage-31] [handshake] Received "FULLRESYNC 86a8150ed3a641fdbddcc957472c149a976e7a0c 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2G4}g\xfa\bused-mem\u0098\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68ee96b6e622b3dd2aa0dab292f391a50df4271c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa8\aoU\xc0K\n\x87" +[stage-31] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2*k}g\xfa\bused-mem¸\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(86a8150ed3a641fdbddcc957472c149a976e7a0c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffq1\f\xcfy\x17pE" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 3 [stage-31] [handshake] replica-3: $ redis-cli PING @@ -69,11 +69,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-3: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0\r\n" -[stage-31] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" -[stage-31] [handshake] Received "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" +[stage-31] [handshake] replica-3: Received bytes: "+FULLRESYNC 86a8150ed3a641fdbddcc957472c149a976e7a0c 0\r\n" +[stage-31] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 86a8150ed3a641fdbddcc957472c149a976e7a0c 0" +[stage-31] [handshake] Received "FULLRESYNC 86a8150ed3a641fdbddcc957472c149a976e7a0c 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2G4}g\xfa\bused-mem\xc2\xe0\x16\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68ee96b6e622b3dd2aa0dab292f391a50df4271c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xc8\n\n7\xf4\x98\x82\x04" +[stage-31] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2*k}g\xfa\bused-mem\xc2\x00\x17\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(86a8150ed3a641fdbddcc957472c149a976e7a0c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffi\xaaԹ0\xf4n\x17" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 4 [stage-31] [handshake] replica-4: $ redis-cli PING @@ -93,11 +93,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-4: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-4: Received bytes: "+FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0\r\n" -[stage-31] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" -[stage-31] [handshake] Received "FULLRESYNC 68ee96b6e622b3dd2aa0dab292f391a50df4271c 0" +[stage-31] [handshake] replica-4: Received bytes: "+FULLRESYNC 86a8150ed3a641fdbddcc957472c149a976e7a0c 0\r\n" +[stage-31] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 86a8150ed3a641fdbddcc957472c149a976e7a0c 0" +[stage-31] [handshake] Received "FULLRESYNC 86a8150ed3a641fdbddcc957472c149a976e7a0c 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2G4}g\xfa\bused-mem\xc2(p\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68ee96b6e622b3dd2aa0dab292f391a50df4271c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xfc\x97\xe0ܧ\x1fk\xc6" +[stage-31] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2*k}g\xfa\bused-mem\xc2Hp\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(86a8150ed3a641fdbddcc957472c149a976e7a0c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xc7G\xb3\x11\x80\x8a\xab\xe8" [stage-31] [handshake] Received RDB file [stage-31] [test] client: $ redis-cli SET foo 123 [stage-31] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -214,7 +214,7 @@ Debug = true [stage-31] [test] replica-4: Not sending ACK to Master [stage-31] [test] client: Received bytes: ":3\r\n" [stage-31] [test] client: Received RESP integer: 3 -[stage-31] [test] WAIT command returned after 2088 ms +[stage-31] [test] WAIT command returned after 2093 ms [stage-31] Test passed. [stage-31] Terminating program [stage-31] Program terminated successfully @@ -240,11 +240,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-1: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" -[stage-30] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" -[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] replica-1: Received bytes: "+FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0\r\n" +[stage-30] [handshake] replica-1: Received RESP simple string: "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" +[stage-30] [handshake] Received "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2I4}g\xfa\bused-mem\xc2\x10\xc8\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x03\x82\xf3\xcf\xfb0\xa8\x86" +[stage-30] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-k}g\xfa\bused-mem\xc2\xd0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e793a296e40c11b3f782c27a895f8ab8a297c681\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffI\x1e\xcff\\B\x89\xaf" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 2 [stage-30] [handshake] replica-2: $ redis-cli PING @@ -264,11 +264,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-2: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" -[stage-30] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" -[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] replica-2: Received bytes: "+FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0\r\n" +[stage-30] [handshake] replica-2: Received RESP simple string: "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" +[stage-30] [handshake] Received "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2I4}g\xfa\bused-mem\xc2ؽ\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff'>\xca8\xb4\xce}\x02" +[stage-30] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-k}g\xfa\bused-mem\u0098\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e793a296e40c11b3f782c27a895f8ab8a297c681\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffM\n\xe6\xa4\xf3\x13\x17a" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 3 [stage-30] [handshake] replica-3: $ redis-cli PING @@ -288,11 +288,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-3: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" -[stage-30] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" -[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] replica-3: Received bytes: "+FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0\r\n" +[stage-30] [handshake] replica-3: Received RESP simple string: "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" +[stage-30] [handshake] Received "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2J4}g\xfa\bused-mem\xc2 \x17\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa9\xce\\\xed=\x10{\xf5" +[stage-30] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-k}g\xfa\bused-mem\xc2\xe0\x16\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e793a296e40c11b3f782c27a895f8ab8a297c681\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff-\a\x83\xc6\xc7\xc0\x9f\xe2" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 4 [stage-30] [handshake] replica-4: $ redis-cli PING @@ -312,11 +312,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-4: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-4: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" -[stage-30] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" -[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] replica-4: Received bytes: "+FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0\r\n" +[stage-30] [handshake] replica-4: Received RESP simple string: "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" +[stage-30] [handshake] Received "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2J4}g\xfa\bused-mem\xc2hp\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\a#;E\x8dn\xbe\n" +[stage-30] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-k}g\xfa\bused-mem\xc2(p\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e793a296e40c11b3f782c27a895f8ab8a297c681\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x19\x9ai-\x94Gv " [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 5 [stage-30] [handshake] replica-5: $ redis-cli PING @@ -336,11 +336,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-5: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-5: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" -[stage-30] [handshake] replica-5: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" -[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] replica-5: Received bytes: "+FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0\r\n" +[stage-30] [handshake] replica-5: Received RESP simple string: "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" +[stage-30] [handshake] Received "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-5: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2J4}g\xfa\bused-mem¸\xc9\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xe2\x11K\xfc\xce\r\xb5\xcf" +[stage-30] [handshake] replica-5: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-k}g\xfa\bused-mem\xc2x\xc9\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e793a296e40c11b3f782c27a895f8ab8a297c681\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffS\xf6\xefb\xb8\x91Q\x17" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 6 [stage-30] [handshake] replica-6: $ redis-cli PING @@ -360,11 +360,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-6: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-6: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" -[stage-30] [handshake] replica-6: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" -[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] replica-6: Received bytes: "+FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0\r\n" +[stage-30] [handshake] replica-6: Received RESP simple string: "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" +[stage-30] [handshake] Received "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-6: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2J4}g\xfa\bused-mem\xc2\x00#\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xe1\x16\xb0/R\xed_6" +[stage-30] [handshake] replica-6: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-k}g\xfa\bused-mem\xc2\xc0\"\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e793a296e40c11b3f782c27a895f8ab8a297c681\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffe\xdfo\x04\xa8=\xbb!" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 7 [stage-30] [handshake] replica-7: $ redis-cli PING @@ -384,11 +384,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-7: > PSYNC ? -1 [stage-30] [handshake] replica-7: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-30] [handshake] replica-7: Received bytes: "+FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0\r\n" -[stage-30] [handshake] replica-7: Received RESP simple string: "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" -[stage-30] [handshake] Received "FULLRESYNC 9a062300261e811b5a67d21e0ded1e35f269055d 0" +[stage-30] [handshake] replica-7: Received bytes: "+FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0\r\n" +[stage-30] [handshake] replica-7: Received RESP simple string: "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" +[stage-30] [handshake] Received "FULLRESYNC e793a296e40c11b3f782c27a895f8ab8a297c681 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-7: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2J4}g\xfa\bused-mem\xc2P|\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a062300261e811b5a67d21e0ded1e35f269055d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffr\xcb8\x8c|O1S" +[stage-30] [handshake] replica-7: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-k}g\xfa\bused-mem\xc2\x10|\x12\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e793a296e40c11b3f782c27a895f8ab8a297c681\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xfflrj\xe4ef\xf9y" [stage-30] [handshake] Received RDB file [stage-30] [test] client: $ redis-cli WAIT 3 500 [stage-30] [test] client: Sent bytes: "*3\r\n$4\r\nWAIT\r\n$1\r\n3\r\n$3\r\n500\r\n" @@ -597,11 +597,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-1: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0\r\n" -[stage-25] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0" -[stage-25] [handshake] Received "FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0" +[stage-25] [handshake] replica-1: Received bytes: "+FULLRESYNC 5f287d3f29b9c2da26f807596cdc99d9e9dfb770 0\r\n" +[stage-25] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 5f287d3f29b9c2da26f807596cdc99d9e9dfb770 0" +[stage-25] [handshake] Received "FULLRESYNC 5f287d3f29b9c2da26f807596cdc99d9e9dfb770 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2K4}g\xfa\bused-mem\xc2X\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(27ed13c4f387e727bb0e37b95f189d2b86487bde\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x1c\xacz+1\xe4߉" +[stage-25] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2.k}g\xfa\bused-mem\xc28\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(5f287d3f29b9c2da26f807596cdc99d9e9dfb770\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x0fO\xbfZ\xd4\xe1Sx" [stage-25] [handshake] Received RDB file [stage-25] Creating replica: 2 [stage-25] [handshake] replica-2: $ redis-cli PING @@ -621,11 +621,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-2: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0\r\n" -[stage-25] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0" -[stage-25] [handshake] Received "FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0" +[stage-25] [handshake] replica-2: Received bytes: "+FULLRESYNC 5f287d3f29b9c2da26f807596cdc99d9e9dfb770 0\r\n" +[stage-25] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 5f287d3f29b9c2da26f807596cdc99d9e9dfb770 0" +[stage-25] [handshake] Received "FULLRESYNC 5f287d3f29b9c2da26f807596cdc99d9e9dfb770 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2K4}g\xfa\bused-mem\xc2\x10\x8b\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(27ed13c4f387e727bb0e37b95f189d2b86487bde\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff6\x1c]ԂE\xe0\x1f" +[stage-25] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2.k}g\xfa\bused-mem\xc2\xf0\x02\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(5f287d3f29b9c2da26f807596cdc99d9e9dfb770\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffXzB\xa5x\x1c\xf9\x85" [stage-25] [handshake] Received RDB file [stage-25] Creating replica: 3 [stage-25] [handshake] replica-3: $ redis-cli PING @@ -645,11 +645,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-3: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0\r\n" -[stage-25] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0" -[stage-25] [handshake] Received "FULLRESYNC 27ed13c4f387e727bb0e37b95f189d2b86487bde 0" +[stage-25] [handshake] replica-3: Received bytes: "+FULLRESYNC 5f287d3f29b9c2da26f807596cdc99d9e9dfb770 0\r\n" +[stage-25] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 5f287d3f29b9c2da26f807596cdc99d9e9dfb770 0" +[stage-25] [handshake] Received "FULLRESYNC 5f287d3f29b9c2da26f807596cdc99d9e9dfb770 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2K4}g\xfa\bused-mem\xc2X \x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(27ed13c4f387e727bb0e37b95f189d2b86487bde\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff*\x92'\xa47ӷD" +[stage-25] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2/k}g\xfa\bused-mem\xc28 \x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(5f287d3f29b9c2da26f807596cdc99d9e9dfb770\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff̄\xba\xb1)gmk" [stage-25] [handshake] Received RDB file [stage-25] [test] client: $ redis-cli SET foo 123 [stage-25] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -734,11 +734,11 @@ Debug = true [stage-24] [handshake] Received "OK" [stage-24] [handshake] replica: > PSYNC ? -1 [stage-24] [handshake] replica: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-24] [handshake] replica: Received bytes: "+FULLRESYNC 209f01b368caea2a4f311276b437c5d0d47b528e 0\r\n" -[stage-24] [handshake] replica: Received RESP simple string: "FULLRESYNC 209f01b368caea2a4f311276b437c5d0d47b528e 0" -[stage-24] [handshake] Received "FULLRESYNC 209f01b368caea2a4f311276b437c5d0d47b528e 0" +[stage-24] [handshake] replica: Received bytes: "+FULLRESYNC b3d0512f4981e50d40d9e472987bae5bb89dbdaf 0\r\n" +[stage-24] [handshake] replica: Received RESP simple string: "FULLRESYNC b3d0512f4981e50d40d9e472987bae5bb89dbdaf 0" +[stage-24] [handshake] Received "FULLRESYNC b3d0512f4981e50d40d9e472987bae5bb89dbdaf 0" [stage-24] [handshake] Reading RDB file... -[stage-24] [handshake] replica: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2L4}g\xfa\bused-mem\xc2\x18\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(209f01b368caea2a4f311276b437c5d0d47b528e\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x9eg\x8a\xce/\xf1\xbd'" +[stage-24] [handshake] replica: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2/k}g\xfa\bused-mem\xc2\xd8\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(b3d0512f4981e50d40d9e472987bae5bb89dbdaf\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffl\xb3\x80\x8b\xb5y\"?" [stage-24] [handshake] Received RDB file [stage-24] [test] client: $ redis-cli SET foo 123 [stage-24] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -793,11 +793,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 e8dce7caf85ae5d28f0f3aaa63b08555eda7467c 0\r\n" -[stage-23] client: Received RESP simple string: "FULLRESYNC e8dce7caf85ae5d28f0f3aaa63b08555eda7467c 0" -[stage-23] Received "FULLRESYNC e8dce7caf85ae5d28f0f3aaa63b08555eda7467c 0" +[stage-23] client: Received bytes: "+FULLRESYNC 07aca795fe0f8214c111f72209340c452e6a413c 0\r\n" +[stage-23] client: Received RESP simple string: "FULLRESYNC 07aca795fe0f8214c111f72209340c452e6a413c 0" +[stage-23] Received "FULLRESYNC 07aca795fe0f8214c111f72209340c452e6a413c 0" [stage-23] Reading RDB file... -[stage-23] client: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2L4}g\xfa\bused-mem\xc2\xd0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e8dce7caf85ae5d28f0f3aaa63b08555eda7467c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff{\xeex\x1b\xbcZ;%" +[stage-23] client: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2/k}g\xfa\bused-mem\xc2\x10\xc8\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(07aca795fe0f8214c111f72209340c452e6a413c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffݸ\x10\xfe\xc3\x01sj" [stage-23] Received RDB file [stage-23] Test passed. [stage-23] Terminating program @@ -822,9 +822,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 63e0fc4b414ebb707b5cf73398f66f4b7ede54c8 0\r\n" -[stage-22] client: Received RESP simple string: "FULLRESYNC 63e0fc4b414ebb707b5cf73398f66f4b7ede54c8 0" -[stage-22] Received "FULLRESYNC 63e0fc4b414ebb707b5cf73398f66f4b7ede54c8 0" +[stage-22] client: Received bytes: "+FULLRESYNC 05ed155cd2433fa7a684d1d075adcb24c1612d89 0\r\n" +[stage-22] client: Received RESP simple string: "FULLRESYNC 05ed155cd2433fa7a684d1d075adcb24c1612d89 0" +[stage-22] Received "FULLRESYNC 05ed155cd2433fa7a684d1d075adcb24c1612d89 0" [stage-22] Test passed. [stage-22] Terminating program [stage-22] Program terminated successfully @@ -923,9 +923,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:74325622cb2bb11b0cf0d0ed1d6a374cac64c655\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:74325622cb2bb11b0cf0d0ed1d6a374cac64c655\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:74325622cb2bb11b0cf0d0ed1d6a374cac64c655\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:db12b30b2e477cc54a544156c9c9974ba184554c\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:db12b30b2e477cc54a544156c9c9974ba184554c\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:db12b30b2e477cc54a544156c9c9974ba184554c\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. @@ -949,9 +949,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:f03693e649dc67e5ccb2007929c34cb04247e3ce\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:f03693e649dc67e5ccb2007929c34cb04247e3ce\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:f03693e649dc67e5ccb2007929c34cb04247e3ce\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:645a519fa3bc1ea0bebbb9f1d5b4aa3fdf160607\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:645a519fa3bc1ea0bebbb9f1d5b4aa3fdf160607\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:645a519fa3bc1ea0bebbb9f1d5b4aa3fdf160607\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 @@ -980,7 +980,7 @@ Debug = true [stage-13] 0070 | 70 69 6e 65 61 70 70 6c 65 06 62 61 6e 61 6e 61 | pineapple.banana [stage-13] 0080 | ff 98 42 4d 49 d1 3b 7b ed 0a | ..BMI.;{.. [stage-13]  -[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3746736873 --dbfilename pear.rdb +[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1242508131 --dbfilename pear.rdb [stage-13] client: $ redis-cli GET blueberry [stage-13] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\nblueberry\r\n" [stage-13] client: Received bytes: "$9\r\nblueberry\r\n" @@ -1015,7 +1015,7 @@ Debug = true [stage-12] 0070 | 62 6c 75 65 62 65 72 72 79 ff 03 5d d3 a4 75 38 | blueberry..]..u8 [stage-12] 0080 | 83 47 0a | .G. [stage-12]  -[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2631358348 --dbfilename mango.rdb +[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3726395041 --dbfilename mango.rdb [stage-12] client: $ redis-cli GET grape [stage-12] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\ngrape\r\n" [stage-12] client: Received bytes: "$5\r\nmango\r\n" @@ -1050,21 +1050,21 @@ Debug = true [stage-11] Hexdump of RDB file contents:  [stage-11] Idx | Hex | ASCII [stage-11] -----+-------------------------------------------------+----------------- -[stage-11] 0000 | 52 45 44 49 53 30 30 31 31 fa 0a 72 65 64 69 73 | REDIS0011..redis -[stage-11] 0010 | 2d 62 69 74 73 c0 40 fa 09 72 65 64 69 73 2d 76 | -bits.@..redis-v -[stage-11] 0020 | 65 72 05 37 2e 32 2e 30 fe 00 fb 04 00 00 09 72 | er.7.2.0.......r +[stage-11] 0000 | 52 45 44 49 53 30 30 31 31 fa 09 72 65 64 69 73 | REDIS0011..redis +[stage-11] 0010 | 2d 76 65 72 05 37 2e 32 2e 30 fa 0a 72 65 64 69 | -ver.7.2.0..redi +[stage-11] 0020 | 73 2d 62 69 74 73 c0 40 fe 00 fb 04 00 00 09 72 | s-bits.@.......r [stage-11] 0030 | 61 73 70 62 65 72 72 79 0a 73 74 72 61 77 62 65 | aspberry.strawbe [stage-11] 0040 | 72 72 79 00 09 62 6c 75 65 62 65 72 72 79 06 6f | rry..blueberry.o [stage-11] 0050 | 72 61 6e 67 65 00 05 61 70 70 6c 65 05 6d 61 6e | range..apple.man [stage-11] 0060 | 67 6f 00 06 6f 72 61 6e 67 65 05 61 70 70 6c 65 | go..orange.apple -[stage-11] 0070 | ff 2c 35 95 30 bc 53 08 8c 0a | .,5.0.S... +[stage-11] 0070 | ff 3a b9 90 72 de 2c a4 3d 0a | .:..r.,.=. [stage-11]  -[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles182156059 --dbfilename grape.rdb +[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3871703545 --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: "*4\r\n$6\r\norange\r\n$9\r\nblueberry\r\n$9\r\nraspberry\r\n$5\r\napple\r\n" -[stage-11] client: Received RESP array: ["orange", "blueberry", "raspberry", "apple"] -[stage-11] Received ["orange", "blueberry", "raspberry", "apple"] +[stage-11] client: Received bytes: "*4\r\n$6\r\norange\r\n$5\r\napple\r\n$9\r\nblueberry\r\n$9\r\nraspberry\r\n" +[stage-11] client: Received RESP array: ["orange", "apple", "blueberry", "raspberry"] +[stage-11] Received ["orange", "apple", "blueberry", "raspberry"] [stage-11] Test passed. [stage-11] Terminating program [stage-11] Program terminated successfully @@ -1074,13 +1074,13 @@ Debug = true [stage-10] Hexdump of RDB file contents:  [stage-10] Idx | Hex | ASCII [stage-10] -----+-------------------------------------------------+----------------- -[stage-10] 0000 | 52 45 44 49 53 30 30 31 31 fa 0a 72 65 64 69 73 | REDIS0011..redis -[stage-10] 0010 | 2d 62 69 74 73 c0 40 fa 09 72 65 64 69 73 2d 76 | -bits.@..redis-v -[stage-10] 0020 | 65 72 05 37 2e 32 2e 30 fe 00 fb 01 00 00 09 62 | er.7.2.0.......b +[stage-10] 0000 | 52 45 44 49 53 30 30 31 31 fa 09 72 65 64 69 73 | REDIS0011..redis +[stage-10] 0010 | 2d 76 65 72 05 37 2e 32 2e 30 fa 0a 72 65 64 69 | -ver.7.2.0..redi +[stage-10] 0020 | 73 2d 62 69 74 73 c0 40 fe 00 fb 01 00 00 09 62 | s-bits.@.......b [stage-10] 0030 | 6c 75 65 62 65 72 72 79 09 72 61 73 70 62 65 72 | lueberry.raspber -[stage-10] 0040 | 72 79 ff 1c 00 77 32 d4 0b 28 5c 0a | ry...w2..(\. +[stage-10] 0040 | 72 79 ff e7 32 68 28 2c c5 26 d7 0a | ry..2h(,.&.. [stage-10]  -[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1710653285 --dbfilename strawberry.rdb +[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles4283816903 --dbfilename strawberry.rdb [stage-10] client: $ redis-cli GET blueberry [stage-10] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\nblueberry\r\n" [stage-10] client: Received bytes: "$9\r\nraspberry\r\n" @@ -1101,7 +1101,7 @@ Debug = true [stage-9] 0030 | 72 61 70 65 04 70 65 61 72 ff 3b d6 76 4a 40 88 | rape.pear.;.vJ@. [stage-9] 0040 | 6b 9a 0a | k.. [stage-9]  -[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2129607126 --dbfilename orange.rdb +[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3919273024 --dbfilename orange.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\ngrape\r\n" @@ -1112,12 +1112,12 @@ Debug = true [stage-9] Program terminated successfully [stage-8] Running tests for Stage #8: zg5 -[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles686018463 --dbfilename raspberry.rdb +[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles18353353 --dbfilename raspberry.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$22\r\n/tmp/rdbfiles686018463\r\n" -[stage-8] client: Received RESP array: ["dir", "/tmp/rdbfiles686018463"] -[stage-8] Received ["dir", "/tmp/rdbfiles686018463"] +[stage-8] client: Received bytes: "*2\r\n$3\r\ndir\r\n$21\r\n/tmp/rdbfiles18353353\r\n" +[stage-8] client: Received RESP array: ["dir", "/tmp/rdbfiles18353353"] +[stage-8] Received ["dir", "/tmp/rdbfiles18353353"] [stage-8] Test passed. [stage-8] Terminating program [stage-8] Program terminated successfully @@ -1129,15 +1129,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 14:03:59.339 -[stage-7] Fetching key "mango" at 14:03:59.339 (should not be expired) +[stage-7] Received OK at 17:58:10.394 +[stage-7] Fetching key "mango" at 17:58:10.394 (should not be expired) [stage-7] > GET mango [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\nmango\r\n" [stage-7] Received bytes: "$6\r\norange\r\n" [stage-7] Received RESP bulk string: "orange" [stage-7] Received "orange" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "mango" at 14:03:59.442 (should be expired) +[stage-7] Fetching key "mango" at 17:58:10.497 (should be expired) [stage-7] > GET mango [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$5\r\nmango\r\n" [stage-7] Received bytes: "$-1\r\n" @@ -1232,41 +1232,6 @@ Debug = true [stage-3] client-1: Received bytes: "+PONG\r\n" [stage-3] client-1: Received RESP simple string: "PONG" [stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" [stage-3] Success, closing connection... [stage-3] Test passed. [stage-3] Terminating program diff --git a/internal/test_helpers/fixtures/streams/pass b/internal/test_helpers/fixtures/streams/pass index 89017385..a7e5101c 100644 --- a/internal/test_helpers/fixtures/streams/pass +++ b/internal/test_helpers/fixtures/streams/pass @@ -216,9 +216,9 @@ Debug = true [stage-36] $ ./spawn_redis_server.sh [stage-36] client: $ redis-cli XADD mango * foo bar [stage-36] client: Sent bytes: "*5\r\n$4\r\nXADD\r\n$5\r\nmango\r\n$1\r\n*\r\n$3\r\nfoo\r\n$3\r\nbar\r\n" -[stage-36] client: Received bytes: "$15\r\n1736258602691-0\r\n" -[stage-36] client: Received RESP bulk string: "1736258602691-0" -[stage-36] Received "1736258602691-0" +[stage-36] client: Received bytes: "$15\r\n1736272696731-0\r\n" +[stage-36] client: Received RESP bulk string: "1736272696731-0" +[stage-36] Received "1736272696731-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. @@ -335,11 +335,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-1: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0\r\n" -[stage-31] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" -[stage-31] [handshake] Received "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" +[stage-31] [handshake] replica-1: Received bytes: "+FULLRESYNC 58e818903ac415eac13878943c964e87af84cda0 0\r\n" +[stage-31] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 58e818903ac415eac13878943c964e87af84cda0 0" +[stage-31] [handshake] Received "FULLRESYNC 58e818903ac415eac13878943c964e87af84cda0 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2+4}g\xfa\bused-mem\u0090\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(4637be6a98d754e60d470bf89ea75d8776e81571\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x8b\xc8X\xc2n\xb0\xc8\x10" +[stage-31] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc29k}g\xfa\bused-mem\xc2\xf0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(58e818903ac415eac13878943c964e87af84cda0\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffKx\r\xf7\x06\xe0m'" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 2 [stage-31] [handshake] replica-2: $ redis-cli PING @@ -359,11 +359,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-2: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0\r\n" -[stage-31] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" -[stage-31] [handshake] Received "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" +[stage-31] [handshake] replica-2: Received bytes: "+FULLRESYNC 58e818903ac415eac13878943c964e87af84cda0 0\r\n" +[stage-31] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 58e818903ac415eac13878943c964e87af84cda0 0" +[stage-31] [handshake] Received "FULLRESYNC 58e818903ac415eac13878943c964e87af84cda0 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2+4}g\xfa\bused-mem\xc2X\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(4637be6a98d754e60d470bf89ea75d8776e81571\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff \x82\x87\xf6\xaeTz," +[stage-31] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc29k}g\xfa\bused-mem¸\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(58e818903ac415eac13878943c964e87af84cda0\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffOl$5\xa9\xb1\xf3\xe9" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 3 [stage-31] [handshake] replica-3: $ redis-cli PING @@ -383,11 +383,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-3: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0\r\n" -[stage-31] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" -[stage-31] [handshake] Received "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" +[stage-31] [handshake] replica-3: Received bytes: "+FULLRESYNC 58e818903ac415eac13878943c964e87af84cda0 0\r\n" +[stage-31] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 58e818903ac415eac13878943c964e87af84cda0 0" +[stage-31] [handshake] Received "FULLRESYNC 58e818903ac415eac13878943c964e87af84cda0 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2+4}g\xfa\bused-mem\u00a0\x16\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(4637be6a98d754e60d470bf89ea75d8776e81571\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xef\xd1\x14b\xf52\xde]" +[stage-31] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc29k}g\xfa\bused-mem\xc2\x00\x17\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(58e818903ac415eac13878943c964e87af84cda0\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffW\xf7\xfcC\xe0R\xed\xbb" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 4 [stage-31] [handshake] replica-4: $ redis-cli PING @@ -407,11 +407,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-4: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-4: Received bytes: "+FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0\r\n" -[stage-31] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" -[stage-31] [handshake] Received "FULLRESYNC 4637be6a98d754e60d470bf89ea75d8776e81571 0" +[stage-31] [handshake] replica-4: Received bytes: "+FULLRESYNC 58e818903ac415eac13878943c964e87af84cda0 0\r\n" +[stage-31] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 58e818903ac415eac13878943c964e87af84cda0 0" +[stage-31] [handshake] Received "FULLRESYNC 58e818903ac415eac13878943c964e87af84cda0 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2+4}g\xfa\bused-mem\xc2\xe8o\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(4637be6a98d754e60d470bf89ea75d8776e81571\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff4B)\x15\t_\x8c\xf9" +[stage-31] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc29k}g\xfa\bused-mem\xc2Hp\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(58e818903ac415eac13878943c964e87af84cda0\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xf9\x1a\x9b\xebP,(D" [stage-31] [handshake] Received RDB file [stage-31] [test] client: $ redis-cli SET foo 123 [stage-31] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -528,7 +528,7 @@ Debug = true [stage-31] [test] replica-4: Not sending ACK to Master [stage-31] [test] client: Received bytes: ":3\r\n" [stage-31] [test] client: Received RESP integer: 3 -[stage-31] [test] WAIT command returned after 2095 ms +[stage-31] [test] WAIT command returned after 2087 ms [stage-31] Test passed. [stage-31] Terminating program [stage-31] Program terminated successfully @@ -554,11 +554,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-1: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0\r\n" -[stage-30] [handshake] replica-1: Received RESP simple string: "FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0" -[stage-30] [handshake] Received "FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0" +[stage-30] [handshake] replica-1: Received bytes: "+FULLRESYNC 2bab74d6ee50c899c0b7904cdbdf49b46d458cfc 0\r\n" +[stage-30] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 2bab74d6ee50c899c0b7904cdbdf49b46d458cfc 0" +[stage-30] [handshake] Received "FULLRESYNC 2bab74d6ee50c899c0b7904cdbdf49b46d458cfc 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-4}g\xfa\bused-mem\xc20\xc8\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(bbb560079ccbb4d53be21e6076b0db923f56535e\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff,ZZ\x80\x11OwX" +[stage-30] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2;k}g\xfa\bused-mem°\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(2bab74d6ee50c899c0b7904cdbdf49b46d458cfc\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xe3\xea?B\xfe!/\xe1" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 2 [stage-30] [handshake] replica-2: $ redis-cli PING @@ -578,11 +578,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-2: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0\r\n" -[stage-30] [handshake] replica-2: Received RESP simple string: "FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0" -[stage-30] [handshake] Received "FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0" +[stage-30] [handshake] replica-2: Received bytes: "+FULLRESYNC 2bab74d6ee50c899c0b7904cdbdf49b46d458cfc 0\r\n" +[stage-30] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 2bab74d6ee50c899c0b7904cdbdf49b46d458cfc 0" +[stage-30] [handshake] Received "FULLRESYNC 2bab74d6ee50c899c0b7904cdbdf49b46d458cfc 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2-4}g\xfa\bused-mem\xc2\xf8\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(bbb560079ccbb4d53be21e6076b0db923f56535e\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\b\xe6cw^\xb1\xa2\xdc" +[stage-30] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2;k}g\xfa\bused-mem\xc2x\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(2bab74d6ee50c899c0b7904cdbdf49b46d458cfc\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffH\xa0\xe0v>ŝ\xdd" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 3 [stage-30] [handshake] replica-3: $ redis-cli PING @@ -602,11 +602,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-3: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0\r\n" -[stage-30] [handshake] replica-3: Received RESP simple string: "FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0" -[stage-30] [handshake] Received "FULLRESYNC bbb560079ccbb4d53be21e6076b0db923f56535e 0" +[stage-30] [handshake] replica-3: Received bytes: "+FULLRESYNC 2bab74d6ee50c899c0b7904cdbdf49b46d458cfc 0\r\n" +[stage-30] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 2bab74d6ee50c899c0b7904cdbdf49b46d458cfc 0" +[stage-30] [handshake] Received "FULLRESYNC 2bab74d6ee50c899c0b7904cdbdf49b46d458cfc 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2.4}g\xfa\bused-mem\xc2@\x17\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(bbb560079ccbb4d53be21e6076b0db923f56535e\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffd\xf0\xc5\xf5I\xa6\x1e\xc7" +[stage-30] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2 PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0\r\n" -[stage-25] [handshake] replica-1: Received RESP simple string: "FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0" -[stage-25] [handshake] Received "FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0" +[stage-25] [handshake] replica-1: Received bytes: "+FULLRESYNC 3d53ef0e04475b33e62ae1eb3aa38c8b76835408 0\r\n" +[stage-25] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 3d53ef0e04475b33e62ae1eb3aa38c8b76835408 0" +[stage-25] [handshake] Received "FULLRESYNC 3d53ef0e04475b33e62ae1eb3aa38c8b76835408 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2/4}g\xfa\bused-mem\xc2\xd8\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e056de17993d25a2bd0e92b242e0cf43b513190d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xea\x03\x90e\x1a\xb1\xecs" +[stage-25] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2=k}g\xfa\bused-mem\xc2\xf8\f\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(3d53ef0e04475b33e62ae1eb3aa38c8b76835408\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff>\x82\a\xaf:\xdcm\x83" [stage-25] [handshake] Received RDB file [stage-25] Creating replica: 2 [stage-25] [handshake] replica-2: $ redis-cli PING @@ -834,11 +834,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-2: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0\r\n" -[stage-25] [handshake] replica-2: Received RESP simple string: "FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0" -[stage-25] [handshake] Received "FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0" +[stage-25] [handshake] replica-2: Received bytes: "+FULLRESYNC 3d53ef0e04475b33e62ae1eb3aa38c8b76835408 0\r\n" +[stage-25] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 3d53ef0e04475b33e62ae1eb3aa38c8b76835408 0" +[stage-25] [handshake] Received "FULLRESYNC 3d53ef0e04475b33e62ae1eb3aa38c8b76835408 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2/4}g\xfa\bused-mem\u0090\x03\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e056de17993d25a2bd0e92b242e0cf43b513190d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff'F\xe0\xd9U\xb5j\xb3" +[stage-25] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2>k}g\xfa\bused-mem°\x02\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(3d53ef0e04475b33e62ae1eb3aa38c8b76835408\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x87J\t\xe7+,I\n" [stage-25] [handshake] Received RDB file [stage-25] Creating replica: 3 [stage-25] [handshake] replica-3: $ redis-cli PING @@ -858,11 +858,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-3: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0\r\n" -[stage-25] [handshake] replica-3: Received RESP simple string: "FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0" -[stage-25] [handshake] Received "FULLRESYNC e056de17993d25a2bd0e92b242e0cf43b513190d 0" +[stage-25] [handshake] replica-3: Received bytes: "+FULLRESYNC 3d53ef0e04475b33e62ae1eb3aa38c8b76835408 0\r\n" +[stage-25] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 3d53ef0e04475b33e62ae1eb3aa38c8b76835408 0" +[stage-25] [handshake] Received "FULLRESYNC 3d53ef0e04475b33e62ae1eb3aa38c8b76835408 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc204}g\xfa\bused-mem\xc2\xd8 \x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(e056de17993d25a2bd0e92b242e0cf43b513190d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xb7\x9f\xb3t\v12\xe8" +[stage-25] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2>k}g\xfa\bused-mem\xc2\xf8\x1f\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(3d53ef0e04475b33e62ae1eb3aa38c8b76835408\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x97\x02\xf1X\xb1\x86\xd0\x05" [stage-25] [handshake] Received RDB file [stage-25] [test] client: $ redis-cli SET foo 123 [stage-25] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -947,11 +947,11 @@ Debug = true [stage-24] [handshake] Received "OK" [stage-24] [handshake] replica: > PSYNC ? -1 [stage-24] [handshake] replica: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-24] [handshake] replica: Received bytes: "+FULLRESYNC 88ebc55d485612984e75374445f46b3cdc1c1fe0 0\r\n" -[stage-24] [handshake] replica: Received RESP simple string: "FULLRESYNC 88ebc55d485612984e75374445f46b3cdc1c1fe0 0" -[stage-24] [handshake] Received "FULLRESYNC 88ebc55d485612984e75374445f46b3cdc1c1fe0 0" +[stage-24] [handshake] replica: Received bytes: "+FULLRESYNC d7e283172af5d9beb56ac5c7b6541d1e161b51e0 0\r\n" +[stage-24] [handshake] replica: Received RESP simple string: "FULLRESYNC d7e283172af5d9beb56ac5c7b6541d1e161b51e0 0" +[stage-24] [handshake] Received "FULLRESYNC d7e283172af5d9beb56ac5c7b6541d1e161b51e0 0" [stage-24] [handshake] Reading RDB file... -[stage-24] [handshake] replica: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc204}g\xfa\bused-mem\xc28\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(88ebc55d485612984e75374445f46b3cdc1c1fe0\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa8\xed\xe0 \xcd[\xf8x" +[stage-24] [handshake] replica: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2>k}g\xfa\bused-mem\xc2\x18\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d7e283172af5d9beb56ac5c7b6541d1e161b51e0\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x9aB8\x81 \x19݈" [stage-24] [handshake] Received RDB file [stage-24] [test] client: $ redis-cli SET foo 123 [stage-24] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -1006,11 +1006,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 8fbb281c2a47de59ed50a8a26ddaf73360610997 0\r\n" -[stage-23] client: Received RESP simple string: "FULLRESYNC 8fbb281c2a47de59ed50a8a26ddaf73360610997 0" -[stage-23] Received "FULLRESYNC 8fbb281c2a47de59ed50a8a26ddaf73360610997 0" +[stage-23] client: Received bytes: "+FULLRESYNC 566907915ab1ff4d7a4c423eda1e2adbfb3e4ff2 0\r\n" +[stage-23] client: Received RESP simple string: "FULLRESYNC 566907915ab1ff4d7a4c423eda1e2adbfb3e4ff2 0" +[stage-23] Received "FULLRESYNC 566907915ab1ff4d7a4c423eda1e2adbfb3e4ff2 0" [stage-23] Reading RDB file... -[stage-23] client: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc204}g\xfa\bused-mem\xc2P\xc8\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(8fbb281c2a47de59ed50a8a26ddaf73360610997\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xa9\u0091\xcb犃 " +[stage-23] client: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2>k}g\xfa\bused-mem\xc2\x10\xc8\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(566907915ab1ff4d7a4c423eda1e2adbfb3e4ff2\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff>s\x89|\xcd\xfbc)" [stage-23] Received RDB file [stage-23] Test passed. [stage-23] Terminating program @@ -1035,9 +1035,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 d26921c288e021624b3a2b044da991ac28671eb5 0\r\n" -[stage-22] client: Received RESP simple string: "FULLRESYNC d26921c288e021624b3a2b044da991ac28671eb5 0" -[stage-22] Received "FULLRESYNC d26921c288e021624b3a2b044da991ac28671eb5 0" +[stage-22] client: Received bytes: "+FULLRESYNC ede26167896b1d3814e3d84ec0f4ea5e723dcdc8 0\r\n" +[stage-22] client: Received RESP simple string: "FULLRESYNC ede26167896b1d3814e3d84ec0f4ea5e723dcdc8 0" +[stage-22] Received "FULLRESYNC ede26167896b1d3814e3d84ec0f4ea5e723dcdc8 0" [stage-22] Test passed. [stage-22] Terminating program [stage-22] Program terminated successfully @@ -1136,9 +1136,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:d6a84ff39b1bcc9ee5f1a42bda52d8d3d895c635\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:d6a84ff39b1bcc9ee5f1a42bda52d8d3d895c635\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:d6a84ff39b1bcc9ee5f1a42bda52d8d3d895c635\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:64ea88a8fb7dfc5512f9989432ebb25aaf72cc6e\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:64ea88a8fb7dfc5512f9989432ebb25aaf72cc6e\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:64ea88a8fb7dfc5512f9989432ebb25aaf72cc6e\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. @@ -1162,9 +1162,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:7511e581396fc88e280737ba2f3800b349aae66e\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:7511e581396fc88e280737ba2f3800b349aae66e\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:7511e581396fc88e280737ba2f3800b349aae66e\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:ada2c4ad46581f555626723b93a5279a28768099\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:ada2c4ad46581f555626723b93a5279a28768099\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:ada2c4ad46581f555626723b93a5279a28768099\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 @@ -1193,7 +1193,7 @@ Debug = true [stage-13] 0070 | 65 09 72 61 73 70 62 65 72 72 79 ff f7 d4 d3 00 | e.raspberry..... [stage-13] 0080 | ab 58 b4 13 0a | .X... [stage-13]  -[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2406899246 --dbfilename grape.rdb +[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3951873889 --dbfilename grape.rdb [stage-13] client: $ redis-cli GET raspberry [stage-13] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\nraspberry\r\n" [stage-13] client: Received bytes: "$9\r\npineapple\r\n" @@ -1228,7 +1228,7 @@ Debug = true [stage-12] 0070 | 67 6f 09 62 6c 75 65 62 65 72 72 79 ff af 60 d1 | go.blueberry..`. [stage-12] 0080 | 2f 14 70 b8 8d 0a | /.p... [stage-12]  -[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles247888172 --dbfilename strawberry.rdb +[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3800697633 --dbfilename strawberry.rdb [stage-12] client: $ redis-cli GET banana [stage-12] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$6\r\nbanana\r\n" [stage-12] client: Received bytes: "$5\r\ngrape\r\n" @@ -1273,12 +1273,12 @@ Debug = true [stage-11] 0070 | 70 65 09 72 61 73 70 62 65 72 72 79 ff 38 8d 90 | pe.raspberry.8.. [stage-11] 0080 | f3 22 1e 0f c4 0a | .".... [stage-11]  -[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles399852681 --dbfilename raspberry.rdb +[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles431667445 --dbfilename raspberry.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: "*5\r\n$5\r\napple\r\n$6\r\nbanana\r\n$10\r\nstrawberry\r\n$5\r\ngrape\r\n$6\r\norange\r\n" -[stage-11] client: Received RESP array: ["apple", "banana", "strawberry", "grape", "orange"] -[stage-11] Received ["apple", "banana", "strawberry", "grape", "orange"] +[stage-11] client: Received bytes: "*5\r\n$10\r\nstrawberry\r\n$6\r\norange\r\n$5\r\napple\r\n$6\r\nbanana\r\n$5\r\ngrape\r\n" +[stage-11] client: Received RESP array: ["strawberry", "orange", "apple", "banana", "grape"] +[stage-11] Received ["strawberry", "orange", "apple", "banana", "grape"] [stage-11] Test passed. [stage-11] Terminating program [stage-11] Program terminated successfully @@ -1294,7 +1294,7 @@ Debug = true [stage-10] 0030 | 61 73 70 62 65 72 72 79 04 70 65 61 72 ff 64 d8 | aspberry.pear.d. [stage-10] 0040 | a7 37 ce 1e 69 29 0a | .7..i). [stage-10]  -[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1227263744 --dbfilename pear.rdb +[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles4197209215 --dbfilename pear.rdb [stage-10] client: $ redis-cli GET raspberry [stage-10] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\nraspberry\r\n" [stage-10] client: Received bytes: "$4\r\npear\r\n" @@ -1315,7 +1315,7 @@ Debug = true [stage-9] 0030 | 72 61 6e 67 65 05 6d 61 6e 67 6f ff c7 77 bd 73 | range.mango..w.s [stage-9] 0040 | 84 b6 3a 5d 0a | ..:]. [stage-9]  -[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2330623696 --dbfilename grape.rdb +[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1160222168 --dbfilename grape.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$6\r\norange\r\n" @@ -1326,12 +1326,12 @@ Debug = true [stage-9] Program terminated successfully [stage-8] Running tests for Stage #8: zg5 -[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1597263641 --dbfilename pear.rdb +[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3573703411 --dbfilename pear.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$23\r\n/tmp/rdbfiles1597263641\r\n" -[stage-8] client: Received RESP array: ["dir", "/tmp/rdbfiles1597263641"] -[stage-8] Received ["dir", "/tmp/rdbfiles1597263641"] +[stage-8] client: Received bytes: "*2\r\n$3\r\ndir\r\n$23\r\n/tmp/rdbfiles3573703411\r\n" +[stage-8] client: Received RESP array: ["dir", "/tmp/rdbfiles3573703411"] +[stage-8] Received ["dir", "/tmp/rdbfiles3573703411"] [stage-8] Test passed. [stage-8] Terminating program [stage-8] Program terminated successfully @@ -1343,15 +1343,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 14:03:31.440 -[stage-7] Fetching key "pear" at 14:03:31.440 (should not be expired) +[stage-7] Received OK at 17:58:25.432 +[stage-7] Fetching key "pear" at 17:58:25.432 (should not be expired) [stage-7] > GET pear [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$4\r\npear\r\n" [stage-7] Received bytes: "$5\r\nmango\r\n" [stage-7] Received RESP bulk string: "mango" [stage-7] Received "mango" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "pear" at 14:03:31.543 (should be expired) +[stage-7] Fetching key "pear" at 17:58:25.535 (should be expired) [stage-7] > GET pear [stage-7] Sent bytes: "*2\r\n$3\r\nGET\r\n$4\r\npear\r\n" [stage-7] Received bytes: "$-1\r\n" @@ -1446,41 +1446,6 @@ Debug = true [stage-3] client-1: Received bytes: "+PONG\r\n" [stage-3] client-1: Received RESP simple string: "PONG" [stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" [stage-3] Success, closing connection... [stage-3] Test passed. [stage-3] Terminating program diff --git a/internal/test_helpers/fixtures/transactions/pass b/internal/test_helpers/fixtures/transactions/pass index b046a9da..5c97c36e 100644 --- a/internal/test_helpers/fixtures/transactions/pass +++ b/internal/test_helpers/fixtures/transactions/pass @@ -607,9 +607,9 @@ Debug = true [stage-36] $ ./spawn_redis_server.sh [stage-36] client: $ redis-cli XADD pear * foo bar [stage-36] client: Sent bytes: "*5\r\n$4\r\nXADD\r\n$4\r\npear\r\n$1\r\n*\r\n$3\r\nfoo\r\n$3\r\nbar\r\n" -[stage-36] client: Received bytes: "$15\r\n1736258647147-0\r\n" -[stage-36] client: Received RESP bulk string: "1736258647147-0" -[stage-36] Received "1736258647147-0" +[stage-36] client: Received bytes: "$15\r\n1736272659777-0\r\n" +[stage-36] client: Received RESP bulk string: "1736272659777-0" +[stage-36] Received "1736272659777-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. @@ -726,11 +726,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-1: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0\r\n" -[stage-31] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" -[stage-31] [handshake] Received "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" +[stage-31] [handshake] replica-1: Received bytes: "+FULLRESYNC a33a8526964bf016c53ad42b16ccab7b2e187ccf 0\r\n" +[stage-31] [handshake] replica-1: Received RESP simple string: "FULLRESYNC a33a8526964bf016c53ad42b16ccab7b2e187ccf 0" +[stage-31] [handshake] Received "FULLRESYNC a33a8526964bf016c53ad42b16ccab7b2e187ccf 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2W4}g\xfa\bused-mem\xc2\xf0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68486b588b96d959778cac87cb53b0c68830224c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffK\xbaqs\xeb\x92JL" +[stage-31] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x14k}g\xfa\bused-mem\xc2\xd0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(a33a8526964bf016c53ad42b16ccab7b2e187ccf\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x03J\x8f\x86\xb8J\x03'" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 2 [stage-31] [handshake] replica-2: $ redis-cli PING @@ -750,11 +750,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-2: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0\r\n" -[stage-31] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" -[stage-31] [handshake] Received "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" +[stage-31] [handshake] replica-2: Received bytes: "+FULLRESYNC a33a8526964bf016c53ad42b16ccab7b2e187ccf 0\r\n" +[stage-31] [handshake] replica-2: Received RESP simple string: "FULLRESYNC a33a8526964bf016c53ad42b16ccab7b2e187ccf 0" +[stage-31] [handshake] Received "FULLRESYNC a33a8526964bf016c53ad42b16ccab7b2e187ccf 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2W4}g\xfa\bused-mem¸\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68486b588b96d959778cac87cb53b0c68830224c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffO\xaeX\xb1D\xc3Ԃ" +[stage-31] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x14k}g\xfa\bused-mem\u0098\x81\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(a33a8526964bf016c53ad42b16ccab7b2e187ccf\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xed\xa2\x12\xfa\x8e=\xb3^" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 3 [stage-31] [handshake] replica-3: $ redis-cli PING @@ -774,11 +774,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-3: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0\r\n" -[stage-31] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" -[stage-31] [handshake] Received "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" +[stage-31] [handshake] replica-3: Received bytes: "+FULLRESYNC a33a8526964bf016c53ad42b16ccab7b2e187ccf 0\r\n" +[stage-31] [handshake] replica-3: Received RESP simple string: "FULLRESYNC a33a8526964bf016c53ad42b16ccab7b2e187ccf 0" +[stage-31] [handshake] Received "FULLRESYNC a33a8526964bf016c53ad42b16ccab7b2e187ccf 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2W4}g\xfa\bused-mem\xc2\x00\x17\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68486b588b96d959778cac87cb53b0c68830224c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffW5\x80\xc7\r \xca\xd0" +[stage-31] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x14k}g\xfa\bused-mem\xc2\xe0\x16\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(a33a8526964bf016c53ad42b16ccab7b2e187ccf\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffgS\xc3&#\xc8\x15j" [stage-31] [handshake] Received RDB file [stage-31] Creating replica: 4 [stage-31] [handshake] replica-4: $ redis-cli PING @@ -798,11 +798,11 @@ Debug = true [stage-31] [handshake] Received "OK" [stage-31] [handshake] replica-4: > PSYNC ? -1 [stage-31] [handshake] 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] [handshake] replica-4: Received bytes: "+FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0\r\n" -[stage-31] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" -[stage-31] [handshake] Received "FULLRESYNC 68486b588b96d959778cac87cb53b0c68830224c 0" +[stage-31] [handshake] replica-4: Received bytes: "+FULLRESYNC a33a8526964bf016c53ad42b16ccab7b2e187ccf 0\r\n" +[stage-31] [handshake] replica-4: Received RESP simple string: "FULLRESYNC a33a8526964bf016c53ad42b16ccab7b2e187ccf 0" +[stage-31] [handshake] Received "FULLRESYNC a33a8526964bf016c53ad42b16ccab7b2e187ccf 0" [stage-31] [handshake] Reading RDB file... -[stage-31] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2W4}g\xfa\bused-mem\xc2Hp\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(68486b588b96d959778cac87cb53b0c68830224c\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xf9\xd8\xe7o\xbd^\x0f/" +[stage-31] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x14k}g\xfa\bused-mem\xc2(p\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(a33a8526964bf016c53ad42b16ccab7b2e187ccf\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffS\xce)\xcdpO\xfc\xa8" [stage-31] [handshake] Received RDB file [stage-31] [test] client: $ redis-cli SET foo 123 [stage-31] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -919,7 +919,7 @@ Debug = true [stage-31] [test] replica-4: Not sending ACK to Master [stage-31] [test] client: Received bytes: ":3\r\n" [stage-31] [test] client: Received RESP integer: 3 -[stage-31] [test] WAIT command returned after 2097 ms +[stage-31] [test] WAIT command returned after 2098 ms [stage-31] Test passed. [stage-31] Terminating program [stage-31] Program terminated successfully @@ -945,11 +945,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-1: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0\r\n" -[stage-30] [handshake] replica-1: Received RESP simple string: "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" -[stage-30] [handshake] Received "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" +[stage-30] [handshake] replica-1: Received bytes: "+FULLRESYNC 0a68f1d88bf6e4ec2c16424350ef9c82003d37e2 0\r\n" +[stage-30] [handshake] replica-1: Received RESP simple string: "FULLRESYNC 0a68f1d88bf6e4ec2c16424350ef9c82003d37e2 0" +[stage-30] [handshake] Received "FULLRESYNC 0a68f1d88bf6e4ec2c16424350ef9c82003d37e2 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2Z4}g\xfa\bused-mem\xc2\xf0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d6c37941fa6f669d9f4af4acafd130b5df565efb\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffQ\x9e\xcb:\f\x16\x92r" +[stage-30] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x17k}g\xfa\bused-mem\xc2\xf0\xc7\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(0a68f1d88bf6e4ec2c16424350ef9c82003d37e2\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffl'\x93\a\xf5\x14\x05\xa2" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 2 [stage-30] [handshake] replica-2: $ redis-cli PING @@ -969,11 +969,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-2: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0\r\n" -[stage-30] [handshake] replica-2: Received RESP simple string: "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" -[stage-30] [handshake] Received "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" +[stage-30] [handshake] replica-2: Received bytes: "+FULLRESYNC 0a68f1d88bf6e4ec2c16424350ef9c82003d37e2 0\r\n" +[stage-30] [handshake] replica-2: Received RESP simple string: "FULLRESYNC 0a68f1d88bf6e4ec2c16424350ef9c82003d37e2 0" +[stage-30] [handshake] Received "FULLRESYNC 0a68f1d88bf6e4ec2c16424350ef9c82003d37e2 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2Z4}g\xfa\bused-mem¸\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d6c37941fa6f669d9f4af4acafd130b5df565efb\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffU\x8a\xe2\xf8\xa3G\f\xbc" +[stage-30] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x17k}g\xfa\bused-mem¸\xbd\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(0a68f1d88bf6e4ec2c16424350ef9c82003d37e2\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffh3\xba\xc5ZE\x9bl" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 3 [stage-30] [handshake] replica-3: $ redis-cli PING @@ -993,11 +993,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-3: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0\r\n" -[stage-30] [handshake] replica-3: Received RESP simple string: "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" -[stage-30] [handshake] Received "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" +[stage-30] [handshake] replica-3: Received bytes: "+FULLRESYNC 0a68f1d88bf6e4ec2c16424350ef9c82003d37e2 0\r\n" +[stage-30] [handshake] replica-3: Received RESP simple string: "FULLRESYNC 0a68f1d88bf6e4ec2c16424350ef9c82003d37e2 0" +[stage-30] [handshake] Received "FULLRESYNC 0a68f1d88bf6e4ec2c16424350ef9c82003d37e2 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2Z4}g\xfa\bused-mem\xc2\x00\x17\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d6c37941fa6f669d9f4af4acafd130b5df565efb\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffM\x11:\x8e\xea\xa4\x12\xee" +[stage-30] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x17k}g\xfa\bused-mem\xc2\x00\x17\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(0a68f1d88bf6e4ec2c16424350ef9c82003d37e2\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffp\xa8b\xb3\x13\xa6\x85>" [stage-30] [handshake] Received RDB file [stage-30] Creating replica: 4 [stage-30] [handshake] replica-4: $ redis-cli PING @@ -1017,11 +1017,11 @@ Debug = true [stage-30] [handshake] Received "OK" [stage-30] [handshake] replica-4: > PSYNC ? -1 [stage-30] [handshake] 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] [handshake] replica-4: Received bytes: "+FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0\r\n" -[stage-30] [handshake] replica-4: Received RESP simple string: "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" -[stage-30] [handshake] Received "FULLRESYNC d6c37941fa6f669d9f4af4acafd130b5df565efb 0" +[stage-30] [handshake] replica-4: Received bytes: "+FULLRESYNC 0a68f1d88bf6e4ec2c16424350ef9c82003d37e2 0\r\n" +[stage-30] [handshake] replica-4: Received RESP simple string: "FULLRESYNC 0a68f1d88bf6e4ec2c16424350ef9c82003d37e2 0" +[stage-30] [handshake] Received "FULLRESYNC 0a68f1d88bf6e4ec2c16424350ef9c82003d37e2 0" [stage-30] [handshake] Reading RDB file... -[stage-30] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2Z4}g\xfa\bused-mem\xc2Hp\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(d6c37941fa6f669d9f4af4acafd130b5df565efb\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xe3\xfc]&Z\xda\xd7\x11" +[stage-30] [handshake] replica-4: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x17k}g\xfa\bused-mem\xc2Hp\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(0a68f1d88bf6e4ec2c16424350ef9c82003d37e2\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xdeE\x05\x1b\xa3\xd8@\xc1" [stage-30] [handshake] Received RDB file [stage-30] [test] client: $ redis-cli WAIT 3 500 [stage-30] [test] client: Sent bytes: "*3\r\n$4\r\nWAIT\r\n$1\r\n3\r\n$3\r\n500\r\n" @@ -1230,11 +1230,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-1: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-1: Received bytes: "+FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0\r\n" -[stage-25] [handshake] replica-1: Received RESP simple string: "FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0" -[stage-25] [handshake] Received "FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0" +[stage-25] [handshake] replica-1: Received bytes: "+FULLRESYNC fea988e830a5f50d7079c423bfeffb5137e3950d 0\r\n" +[stage-25] [handshake] replica-1: Received RESP simple string: "FULLRESYNC fea988e830a5f50d7079c423bfeffb5137e3950d 0" +[stage-25] [handshake] Received "FULLRESYNC fea988e830a5f50d7079c423bfeffb5137e3950d 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\\4}g\xfa\bused-mem\xc2X\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(aaa71c25b8096fb23521ac4a53337eeca6ffbc70\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff^\xb6\xa6\xb4\x16Q\x8fW" +[stage-25] [handshake] replica-1: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x19k}g\xfa\bused-mem\xc2X\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(fea988e830a5f50d7079c423bfeffb5137e3950d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\b\xa8Qs\xfb\xb0\x95\xf8" [stage-25] [handshake] Received RDB file [stage-25] Creating replica: 2 [stage-25] [handshake] replica-2: $ redis-cli PING @@ -1254,11 +1254,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-2: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-2: Received bytes: "+FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0\r\n" -[stage-25] [handshake] replica-2: Received RESP simple string: "FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0" -[stage-25] [handshake] Received "FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0" +[stage-25] [handshake] replica-2: Received bytes: "+FULLRESYNC fea988e830a5f50d7079c423bfeffb5137e3950d 0\r\n" +[stage-25] [handshake] replica-2: Received RESP simple string: "FULLRESYNC fea988e830a5f50d7079c423bfeffb5137e3950d 0" +[stage-25] [handshake] Received "FULLRESYNC fea988e830a5f50d7079c423bfeffb5137e3950d 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\\4}g\xfa\bused-mem\xc2\x10\x03\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(aaa71c25b8096fb23521ac4a53337eeca6ffbc70\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x93\xf3\xd6\bYU\t\x97" +[stage-25] [handshake] replica-2: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x19k}g\xfa\bused-mem\xc2\x10\x03\x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(fea988e830a5f50d7079c423bfeffb5137e3950d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\xc5\xed!ϴ\xb4\x138" [stage-25] [handshake] Received RDB file [stage-25] Creating replica: 3 [stage-25] [handshake] replica-3: $ redis-cli PING @@ -1278,11 +1278,11 @@ Debug = true [stage-25] [handshake] Received "OK" [stage-25] [handshake] replica-3: > PSYNC ? -1 [stage-25] [handshake] 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] [handshake] replica-3: Received bytes: "+FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0\r\n" -[stage-25] [handshake] replica-3: Received RESP simple string: "FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0" -[stage-25] [handshake] Received "FULLRESYNC aaa71c25b8096fb23521ac4a53337eeca6ffbc70 0" +[stage-25] [handshake] replica-3: Received bytes: "+FULLRESYNC fea988e830a5f50d7079c423bfeffb5137e3950d 0\r\n" +[stage-25] [handshake] replica-3: Received RESP simple string: "FULLRESYNC fea988e830a5f50d7079c423bfeffb5137e3950d 0" +[stage-25] [handshake] Received "FULLRESYNC fea988e830a5f50d7079c423bfeffb5137e3950d 0" [stage-25] [handshake] Reading RDB file... -[stage-25] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\\4}g\xfa\bused-mem\xc2X \x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(aaa71c25b8096fb23521ac4a53337eeca6ffbc70\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffh\x88\xfb;\x10f\xe7\x9a" +[stage-25] [handshake] replica-3: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x19k}g\xfa\bused-mem\xc2X \x11\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(fea988e830a5f50d7079c423bfeffb5137e3950d\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff>\x96\f\xfc\xfd\x87\xfd5" [stage-25] [handshake] Received RDB file [stage-25] [test] client: $ redis-cli SET foo 123 [stage-25] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -1367,11 +1367,11 @@ Debug = true [stage-24] [handshake] Received "OK" [stage-24] [handshake] replica: > PSYNC ? -1 [stage-24] [handshake] replica: Sent bytes: "*3\r\n$5\r\nPSYNC\r\n$1\r\n?\r\n$2\r\n-1\r\n" -[stage-24] [handshake] replica: Received bytes: "+FULLRESYNC 27241e6415a41647bc3c3bc1af30299d41dfef39 0\r\n" -[stage-24] [handshake] replica: Received RESP simple string: "FULLRESYNC 27241e6415a41647bc3c3bc1af30299d41dfef39 0" -[stage-24] [handshake] Received "FULLRESYNC 27241e6415a41647bc3c3bc1af30299d41dfef39 0" +[stage-24] [handshake] replica: Received bytes: "+FULLRESYNC 9a7f7acc6d81981bf7e6869dfc5607fce7e414f2 0\r\n" +[stage-24] [handshake] replica: Received RESP simple string: "FULLRESYNC 9a7f7acc6d81981bf7e6869dfc5607fce7e414f2 0" +[stage-24] [handshake] Received "FULLRESYNC 9a7f7acc6d81981bf7e6869dfc5607fce7e414f2 0" [stage-24] [handshake] Reading RDB file... -[stage-24] [handshake] replica: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\\4}g\xfa\bused-mem\xc28\r\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(27241e6415a41647bc3c3bc1af30299d41dfef39\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff5%M2\xda\xdc\x1fp" +[stage-24] [handshake] replica: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x19k}g\xfa\bused-mem\xc2\xf8\f\x10\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(9a7f7acc6d81981bf7e6869dfc5607fce7e414f2\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff\x1eFx^!\x1d\xc3U" [stage-24] [handshake] Received RDB file [stage-24] [test] client: $ redis-cli SET foo 123 [stage-24] [test] client: Sent bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n" @@ -1426,11 +1426,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 3d5e19e1b5f834933d291b5b502910bbc585ca3b 0\r\n" -[stage-23] client: Received RESP simple string: "FULLRESYNC 3d5e19e1b5f834933d291b5b502910bbc585ca3b 0" -[stage-23] Received "FULLRESYNC 3d5e19e1b5f834933d291b5b502910bbc585ca3b 0" +[stage-23] client: Received bytes: "+FULLRESYNC 77d134f9377c2696d4c2001a490f0e00ea7137ee 0\r\n" +[stage-23] client: Received RESP simple string: "FULLRESYNC 77d134f9377c2696d4c2001a490f0e00ea7137ee 0" +[stage-23] Received "FULLRESYNC 77d134f9377c2696d4c2001a490f0e00ea7137ee 0" [stage-23] Reading RDB file... -[stage-23] client: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2]4}g\xfa\bused-mem\xc2P\xc8\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(3d5e19e1b5f834933d291b5b502910bbc585ca3b\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xffQ\x16\xf2\xe0ɠo\x9e" +[stage-23] client: Received bytes: "$171\r\nREDIS0012\xfa\tredis-ver\x057.4.1\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2\x19k}g\xfa\bused-mem\xc2\x10\xc8\x0f\x00\xfa\x0erepl-stream-db\xc0\x00\xfa\arepl-id(77d134f9377c2696d4c2001a490f0e00ea7137ee\xfa\vrepl-offset\xc0\x00\xfa\baof-base\xc0\x00\xff%<\x92UyrѴ" [stage-23] Received RDB file [stage-23] Test passed. [stage-23] Terminating program @@ -1455,9 +1455,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 f8ca1d72eb49231e8ca0d41c5e8f593ac5fce814 0\r\n" -[stage-22] client: Received RESP simple string: "FULLRESYNC f8ca1d72eb49231e8ca0d41c5e8f593ac5fce814 0" -[stage-22] Received "FULLRESYNC f8ca1d72eb49231e8ca0d41c5e8f593ac5fce814 0" +[stage-22] client: Received bytes: "+FULLRESYNC 3a1d0b44ecc7f584a31e90dfc0b8415179bebbf8 0\r\n" +[stage-22] client: Received RESP simple string: "FULLRESYNC 3a1d0b44ecc7f584a31e90dfc0b8415179bebbf8 0" +[stage-22] Received "FULLRESYNC 3a1d0b44ecc7f584a31e90dfc0b8415179bebbf8 0" [stage-22] Test passed. [stage-22] Terminating program [stage-22] Program terminated successfully @@ -1556,9 +1556,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:ad61eb844c93f8835faec577f072e56a606b7cc3\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:ad61eb844c93f8835faec577f072e56a606b7cc3\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:ad61eb844c93f8835faec577f072e56a606b7cc3\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:297ce81ee6fde677a0522c431131f2a14222ec4c\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:297ce81ee6fde677a0522c431131f2a14222ec4c\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:297ce81ee6fde677a0522c431131f2a14222ec4c\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. @@ -1570,9 +1570,9 @@ Debug = true [stage-16] $ ./spawn_redis_server.sh --port 6380 --replicaof "localhost 6379" [stage-16] client: $ redis-cli INFO replication [stage-16] client: Sent bytes: "*2\r\n$4\r\nINFO\r\n$11\r\nreplication\r\n" -[stage-16] client: Received bytes: "$613\r\n# Replication\r\nrole:slave\r\nmaster_host:localhost\r\nmaster_port:6379\r\nmaster_link_status:down\r\nmaster_last_io_seconds_ago:-1\r\nmaster_sync_in_progress:0\r\nslave_read_repl_offset:0\r\nslave_repl_offset:0\r\nmaster_link_down_since_seconds:1\r\nslave_priority:100\r\nslave_read_only:1\r\nreplica_announced:1\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:75cd7bc10c49047e0d163660f3b90625b1af31dc\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:1\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:1\r\nrepl_backlog_histlen:0\r\n\r\n" -[stage-16] client: Received RESP bulk string: "# Replication\r\nrole:slave\r\nmaster_host:localhost\r\nmaster_port:6379\r\nmaster_link_status:down\r\nmaster_last_io_seconds_ago:-1\r\nmaster_sync_in_progress:0\r\nslave_read_repl_offset:0\r\nslave_repl_offset:0\r\nmaster_link_down_since_seconds:1\r\nslave_priority:100\r\nslave_read_only:1\r\nreplica_announced:1\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:75cd7bc10c49047e0d163660f3b90625b1af31dc\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:1\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:1\r\nrepl_backlog_histlen:0\r\n" -[stage-16] Received "# Replication\r\nrole:slave\r\nmaster_host:localhost\r\nmaster_port:6379\r\nmaster_link_status:down\r\nmaster_last_io_seconds_ago:-1\r\nmaster_sync_in_progress:0\r\nslave_read_repl_offset:0\r\nslave_repl_offset:0\r\nmaster_link_down_since_seconds:1\r\nslave_priority:100\r\nslave_read_only:1\r\nreplica_announced:1\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:75cd7bc10c49047e0d163660f3b90625b1af31dc\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:1\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:1\r\nrepl_backlog_histlen:0\r\n" +[stage-16] client: Received bytes: "$613\r\n# Replication\r\nrole:slave\r\nmaster_host:localhost\r\nmaster_port:6379\r\nmaster_link_status:down\r\nmaster_last_io_seconds_ago:-1\r\nmaster_sync_in_progress:0\r\nslave_read_repl_offset:0\r\nslave_repl_offset:0\r\nmaster_link_down_since_seconds:0\r\nslave_priority:100\r\nslave_read_only:1\r\nreplica_announced:1\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:75cd7bc10c49047e0d163660f3b90625b1af31dc\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:1\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:1\r\nrepl_backlog_histlen:0\r\n\r\n" +[stage-16] client: Received RESP bulk string: "# Replication\r\nrole:slave\r\nmaster_host:localhost\r\nmaster_port:6379\r\nmaster_link_status:down\r\nmaster_last_io_seconds_ago:-1\r\nmaster_sync_in_progress:0\r\nslave_read_repl_offset:0\r\nslave_repl_offset:0\r\nmaster_link_down_since_seconds:0\r\nslave_priority:100\r\nslave_read_only:1\r\nreplica_announced:1\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:75cd7bc10c49047e0d163660f3b90625b1af31dc\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:1\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:1\r\nrepl_backlog_histlen:0\r\n" +[stage-16] Received "# Replication\r\nrole:slave\r\nmaster_host:localhost\r\nmaster_port:6379\r\nmaster_link_status:down\r\nmaster_last_io_seconds_ago:-1\r\nmaster_sync_in_progress:0\r\nslave_read_repl_offset:0\r\nslave_repl_offset:0\r\nmaster_link_down_since_seconds:0\r\nslave_priority:100\r\nslave_read_only:1\r\nreplica_announced:1\r\nconnected_slaves:0\r\nmaster_failover_state:no-failover\r\nmaster_replid:75cd7bc10c49047e0d163660f3b90625b1af31dc\r\nmaster_replid2:0000000000000000000000000000000000000000\r\nmaster_repl_offset:0\r\nsecond_repl_offset:-1\r\nrepl_backlog_active:1\r\nrepl_backlog_size:1048576\r\nrepl_backlog_first_byte_offset:1\r\nrepl_backlog_histlen:0\r\n" [stage-16] Found role:slave in response. [stage-16] Test passed. [stage-16] Terminating program @@ -1582,9 +1582,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:1e23e59f69736166de6a4979cd99c17b7c766171\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:1e23e59f69736166de6a4979cd99c17b7c766171\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:1e23e59f69736166de6a4979cd99c17b7c766171\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:3c8beab6eb77b4b6a23e224a4ac83f2a838634b0\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:3c8beab6eb77b4b6a23e224a4ac83f2a838634b0\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:3c8beab6eb77b4b6a23e224a4ac83f2a838634b0\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 @@ -1615,7 +1615,7 @@ Debug = true [stage-13] 0090 | 72 79 09 72 61 73 70 62 65 72 72 79 ff 61 0a a8 | ry.raspberry.a.. [stage-13] 00a0 | 81 34 4f 53 cf 0a | .4OS.. [stage-13]  -[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2734363899 --dbfilename banana.rdb +[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3881585350 --dbfilename banana.rdb [stage-13] client: $ redis-cli GET orange [stage-13] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$6\r\norange\r\n" [stage-13] client: Received bytes: "$-1\r\n" @@ -1654,7 +1654,7 @@ Debug = true [stage-12] 0060 | 61 6e 67 6f 09 70 69 6e 65 61 70 70 6c 65 ff e3 | ango.pineapple.. [stage-12] 0070 | 11 39 86 b8 ac e4 be 0a | .9...... [stage-12]  -[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles944402357 --dbfilename raspberry.rdb +[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1463265819 --dbfilename raspberry.rdb [stage-12] client: $ redis-cli GET pineapple [stage-12] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\npineapple\r\n" [stage-12] client: Received bytes: "$9\r\nraspberry\r\n" @@ -1692,12 +1692,12 @@ Debug = true [stage-11] 0050 | 67 6f 06 6f 72 61 6e 67 65 ff dc 4d 99 81 37 bf | go.orange..M..7. [stage-11] 0060 | 76 19 0a | v.. [stage-11]  -[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles803148407 --dbfilename pineapple.rdb +[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles701220416 --dbfilename pineapple.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$5\r\ngrape\r\n$5\r\nmango\r\n$5\r\napple\r\n" -[stage-11] client: Received RESP array: ["grape", "mango", "apple"] -[stage-11] Received ["grape", "mango", "apple"] +[stage-11] client: Received bytes: "*3\r\n$5\r\nmango\r\n$5\r\ngrape\r\n$5\r\napple\r\n" +[stage-11] client: Received RESP array: ["mango", "grape", "apple"] +[stage-11] Received ["mango", "grape", "apple"] [stage-11] Test passed. [stage-11] Terminating program [stage-11] Program terminated successfully @@ -1713,7 +1713,7 @@ Debug = true [stage-10] 0030 | 61 73 70 62 65 72 72 79 06 62 61 6e 61 6e 61 ff | aspberry.banana. [stage-10] 0040 | ef 79 f1 21 83 dd e4 16 0a | .y.!..... [stage-10]  -[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2157233406 --dbfilename grape.rdb +[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3013555982 --dbfilename grape.rdb [stage-10] client: $ redis-cli GET raspberry [stage-10] client: Sent bytes: "*2\r\n$3\r\nGET\r\n$9\r\nraspberry\r\n" [stage-10] client: Received bytes: "$6\r\nbanana\r\n" @@ -1734,7 +1734,7 @@ Debug = true [stage-9] 0030 | 61 73 70 62 65 72 72 79 06 6f 72 61 6e 67 65 ff | aspberry.orange. [stage-9] 0040 | d2 ff 75 36 a2 bc 20 ed 0a | ..u6.. .. [stage-9]  -[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles877331780 --dbfilename strawberry.rdb +[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1880139270 --dbfilename strawberry.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$9\r\nraspberry\r\n" @@ -1745,12 +1745,12 @@ Debug = true [stage-9] Program terminated successfully [stage-8] Running tests for Stage #8: zg5 -[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3447160973 --dbfilename banana.rdb +[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3328614850 --dbfilename banana.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$23\r\n/tmp/rdbfiles3447160973\r\n" -[stage-8] client: Received RESP array: ["dir", "/tmp/rdbfiles3447160973"] -[stage-8] Received ["dir", "/tmp/rdbfiles3447160973"] +[stage-8] client: Received bytes: "*2\r\n$3\r\ndir\r\n$23\r\n/tmp/rdbfiles3328614850\r\n" +[stage-8] client: Received RESP array: ["dir", "/tmp/rdbfiles3328614850"] +[stage-8] Received ["dir", "/tmp/rdbfiles3328614850"] [stage-8] Test passed. [stage-8] Terminating program [stage-8] Program terminated successfully @@ -1762,15 +1762,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 14:04:15.974 -[stage-7] Fetching key "apple" at 14:04:15.974 (should not be expired) +[stage-7] Received OK at 17:57:48.725 +[stage-7] Fetching key "apple" at 17:57:48.725 (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: "$10\r\nstrawberry\r\n" [stage-7] Received RESP bulk string: "strawberry" [stage-7] Received "strawberry" [stage-7] Sleeping for 101ms -[stage-7] Fetching key "apple" at 14:04:16.077 (should be expired) +[stage-7] Fetching key "apple" at 17:57:48.828 (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" @@ -1865,41 +1865,6 @@ Debug = true [stage-3] client-1: Received bytes: "+PONG\r\n" [stage-3] client-1: Received RESP simple string: "PONG" [stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" -[stage-3] client-1: > PING -[stage-3] client-1: Sent bytes: "*1\r\n$4\r\nPING\r\n" -[stage-3] client-1: Received bytes: "+PONG\r\n" -[stage-3] client-1: Received RESP simple string: "PONG" -[stage-3] Received "PONG" [stage-3] Success, closing connection... [stage-3] Test passed. [stage-3] Terminating program