Stuck on #NA2: no content received

Hi. I can’t figure out what’s going wrong here.

Locally, I can start the server, start 3 replicas, start a redis-cli and issue WAIT 1 500 and everything works.

But remotely, I get “no content received.”

Can you help me figure out why please?

remote: [tester::#NA2] [test] client: > WAIT 1 500
remote: [tester::#NA2] [test] client: Sent bytes: "*3\r\n$4\r\nWAIT\r\n$1\r\n1\r\n$3\r\n500\r\n"
remote: [tester::#NA2] [test] Testing Replica : 1
remote: [tester::#NA2] [test] replica-1: Expecting "SET foo 123" to be propagated
remote: [tester::#NA2] [test] replica-1: Received bytes: "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\n123\r\n"
remote: [tester::#NA2] [test] replica-1: Received RESP array: ["SET", "foo", "123"]
remote: [tester::#NA2] [test] Received ["SET", "foo", "123"]
remote: [tester::#NA2] [test] replica-1: Expecting "REPLCONF GETACK *" from Master
remote: [your_program] 2024-10-27T15:10:26.570618Z  INFO redis_starter_rust::actors::replicator: Looking for replicas with offset of 31
remote: [your_program] 2024-10-27T15:10:26.570627Z  INFO redis_starter_rust::actors::replicator: k: 127.0.0.1:54422 v: Role: Not setMaster Replication ID: Not setmaster_repl_offset:31:
remote: [your_program] 2024-10-27T15:10:26.570631Z  INFO redis_starter_rust::actors::replicator: k: HostId::Myself v: role:master:master_replid:hocCMg31yOO8WNdRHaPP9I5YeGjR3OkmpeSQ2KAj:master_repl_offset:31:
remote: [your_program] 2024-10-27T15:10:26.570634Z  INFO redis_starter_rust::actors::replicator: k: 127.0.0.1:54406 v: role:slave:master_replid:hocCMg31yOO8WNdRHaPP9I5YeGjR3OkmpeSQ2KAj:master_repl_offset:31:
remote: [your_program] 2024-10-27T15:10:26.570637Z  INFO redis_starter_rust::actors::replicator: k: 127.0.0.1:54396 v: role:slave:master_replid:hocCMg31yOO8WNdRHaPP9I5YeGjR3OkmpeSQ2KAj:master_repl_offset:31:
remote: [your_program] 2024-10-27T15:10:26.570640Z  INFO redis_starter_rust::actors::replicator: k: 127.0.0.1:54382 v: role:slave:master_replid:hocCMg31yOO8WNdRHaPP9I5YeGjR3OkmpeSQ2KAj:master_repl_offset:31:
remote: [your_program] 2024-10-27T15:10:26.570700Z  INFO redis_starter_rust::actors::processor: We have 3 in sync replicas.
remote: [your_program] 2024-10-27T15:10:26.570705Z  INFO redis_starter_rust::actors::processor: 3 > 1, returning immediately.
remote: [your_program] 2024-10-27T15:10:26.570720Z  INFO redis_starter_rust: Preparing to send 1 responses to client: [Integer(3)]
remote: [your_program] 2024-10-27T15:10:26.570742Z  INFO redis_starter_rust: Done sending to 127.0.0.1:54422, moving to the next value.
remote: [tester::#NA2] Received: "" (no content received)
remote: [tester::#NA2]            ^ error
remote: [tester::#NA2] Error: Expected start of a new RESP2 value (either +, -, :, $ or *)
remote: [tester::#NA2] Test failed
remote: [tester::#NA2] Terminating program

The code is a simple for loop and it works locally…

@devfire I’ll take a look at your code as soon as possible, though I may need a few days to get back to you, as I’m a bit tied up at the moment.

1 Like

I think I found an incorrect sleep implementation that was causing the entire process to hang. Let me fix that and if I still have an issue, I’ll report back. Thanks.

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.