# Got timed out redis #YD3 (test exceeded 10 second)

**URL:** <https://forum.codecrafters.io/t/got-timed-out-redis-yd3-test-exceeded-10-second/3001>\
**Category:** Challenges\
**Created:** [November 18, 2024, 8:23pm UTC](https://forum.codecrafters.io/t/got-timed-out-redis-yd3-test-exceeded-10-second/3001 "2024-11-18T20:23:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trafalgar-D-water](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/trafalgar-d-water/32/2999_2.png) [@Trafalgar-D-water](https://forum.codecrafters.io/u/Trafalgar-D-water)\
**Post date:** [November 18, 2024, 8:23pm UTC](https://forum.codecrafters.io/t/got-timed-out-redis-yd3-test-exceeded-10-second/3001/1 "2024-11-18T20:23:45Z")

</div>

```auto
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

```

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [November 19, 2024, 12:21am UTC](https://forum.codecrafters.io/t/got-timed-out-redis-yd3-test-exceeded-10-second/3001/2 "2024-11-19T00:21:16Z")

</div>

Could you [upload your code to GitHub](https://docs.codecrafters.io/features/publish-to-github) and share the link? It will be much easier to debug if I can run it directly.

---

<div class="post-metadata">

**Author:** ![Trafalgar-D-water](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/trafalgar-d-water/32/2999_2.png) [@Trafalgar-D-water](https://forum.codecrafters.io/u/Trafalgar-D-water)\
**Post date:** [November 19, 2024, 6:01am UTC](https://forum.codecrafters.io/t/got-timed-out-redis-yd3-test-exceeded-10-second/3001/3 "2024-11-19T06:01:05Z")

</div>

ya this is my repo link  
[https://github.com/Trafalgar-D-water/redis-server-code](https://github.com/Trafalgar-D-water/redis-server-code)

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [November 24, 2024, 3:41pm UTC](https://forum.codecrafters.io/t/got-timed-out-redis-yd3-test-exceeded-10-second/3001/5 "2024-11-24T15:41:20Z")

</div>

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)**.

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/d/d1ff1864cda6284880aba7823d59d4e1e43ed951.png)

Suggestions:

1. Use [our CLI](https://docs.codecrafters.io/cli/installation) to test against previous stages by running:

```auto
codecrafters test --previous

```

1. Focus on fixing the early stages first, as later stages depend on them.

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [December 1, 2024, 4:24pm UTC](https://forum.codecrafters.io/t/got-timed-out-redis-yd3-test-exceeded-10-second/3001/7 "2024-12-01T16:24:31Z")

</div>

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [December 6, 2024, 4:24pm UTC](https://forum.codecrafters.io/t/got-timed-out-redis-yd3-test-exceeded-10-second/3001/8 "2024-12-06T16:24:48Z")

</div>

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