remote: [your_program] Server Listening on localhost:6379
remote: [tester::#MY8] client: $ redis-cli WAIT 0 60000
remote: [tester::#MY8] client: Sent bytes: "*3\r\n$4\r\nWAIT\r\n$1\r\n0\r\n$5\r\n60000\r\n"
remote: [tester::#MY8] client: Received bytes: ":0\r\n"
remote: [tester::#MY8] client: Received RESP integer: 0
remote: [tester::#MY8] Received 0
remote: [tester::#MY8] Test passed.
remote: [tester::#MY8] Terminating program
remote: [tester::#MY8] Program terminated successfully
remote:
remote: [tester::#YD3] Running tests for Stage #YD3 (Replication - ACKs with commands)
remote: [tester::#YD3] Master is running on port 6379
remote: [tester::#YD3] $ ./your_program.sh --port 6380 --replicaof "localhost 6379"
remote: [tester::#YD3] timed out, test exceeded 10 seconds
remote: [tester::#YD3] Test failed
remote: [tester::#YD3] Terminating program
remote: [tester::#YD3] Error terminating program: 'execution timed out'
remote:
remote: Try our CLI to run tests faster without Git: https://codecrafters.io/cli
remote:
remote: View our article on debugging test failures: https://codecrafters.io/debug
Could you upload your code to GitHub and share the link? It will be much easier to debug if I can run it directly.
ya this is my repo link
https://github.com/Trafalgar-D-water/redis-server-code
Hi @Trafalgar-D-water , I tried running your code against the previous stages, but it’s no longer passing Stage #HC6 (Replication - The INFO command on a replica).
Suggestions:
- Use our CLI to test against previous stages by running:
codecrafters test --previous
- Focus on fixing the early stages first, as later stages depend on them.
Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.