diff --git a/.github/workflows/fixtures.yml b/.github/workflows/fixtures.yml new file mode 100644 index 00000000..c32d5527 --- /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@master + with: + tester_repo: redis-tester + secrets: inherit 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 diff --git a/internal/test_helpers/fixtures/expiry/pass b/internal/test_helpers/fixtures/expiry/pass index 50cac706..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 13:28:48.453 -[stage-7] Fetching key "apple" at 13:28:48.454 (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 13:28:48.557 (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" 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..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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles444689312 --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" @@ -50,7 +50,7 @@ Debug = true [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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3255364286 --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,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/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$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/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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1527538990 --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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2714192117 --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$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/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 16:31:40.207 -[stage-7] Fetching key "strawberry" at 16:31:40.207 (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 16:31:40.311 (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" diff --git a/internal/test_helpers/fixtures/repl-wait/pass b/internal/test_helpers/fixtures/repl-wait/pass index e23c7276..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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 2102 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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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: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: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: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: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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3128804725 --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" @@ -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/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" @@ -1059,7 +1059,7 @@ Debug = true [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]  -[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/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$5\r\napple\r\n$9\r\nblueberry\r\n$9\r\nraspberry\r\n" @@ -1080,7 +1080,7 @@ Debug = true [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]  -[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/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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles872001605 --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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1433393649 --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$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$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 16:31:34.277 -[stage-7] Fetching key "mango" at 16:31:34.277 (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 16:31:34.380 (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" diff --git a/internal/test_helpers/fixtures/streams/pass b/internal/test_helpers/fixtures/streams/pass index 4f3c8a79..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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 2092 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 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 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\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;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 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 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\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;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 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 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\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 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 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\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=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 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 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\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>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 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 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\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\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 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 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\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\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 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 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\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\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 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 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: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: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: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: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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3293649888 --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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1165685106 --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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2437623542 --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$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$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 @@ -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/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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3426670913 --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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2900771858 --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$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/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 16:31:56.379 -[stage-7] Fetching key "pear" at 16:31:56.379 (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 16:31:56.482 (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" diff --git a/internal/test_helpers/fixtures/transactions/pass b/internal/test_helpers/fixtures/transactions/pass index e32e8023..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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 2104 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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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\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\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 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 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: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: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. @@ -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: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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles1270492762 --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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3378448787 --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,7 +1692,7 @@ 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/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\nmango\r\n$5\r\ngrape\r\n$5\r\napple\r\n" @@ -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/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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles2449095305 --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 /private/var/folders/5l/z5y3dkwn68sgb6htzc5w7vnm0000gn/T/rdbfiles3410147028 --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$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/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 16:32:14.021 -[stage-7] Fetching key "apple" at 16:32:14.021 (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 16:32:14.124 (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"