# Redis Replication #CF8: Test Reads the RDB file before the recieving the next response

**URL:** <https://forum.codecrafters.io/t/redis-replication-cf8-test-reads-the-rdb-file-before-the-recieving-the-next-response/347>\
**Category:** Challenges\
**Tags:** challenge:redis\
**Created:** [May 11, 2024, 2:46am UTC](https://forum.codecrafters.io/t/redis-replication-cf8-test-reads-the-rdb-file-before-the-recieving-the-next-response/347 "2024-05-11T02:46:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ananth-annamalai](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/ananth-annamalai/32/306_2.png) [@ananth-annamalai](https://forum.codecrafters.io/u/ananth-annamalai)\
**Post date:** [May 11, 2024, 2:46am UTC](https://forum.codecrafters.io/t/redis-replication-cf8-test-reads-the-rdb-file-before-the-recieving-the-next-response/347/1 "2024-05-11T02:46:15Z")

</div>

Hi , I am stuck on stage 10: Send Empty RDB File  
The test code is trying to read the file immediately before recieving the RDB file  
Error Log:

 ![Screenshot 2024-05-10 at 7.44.33 PM](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/1X/1565d35b1298c0721b3ca5a16498407a24e87c6d.jpeg)

---

<div class="post-metadata">

**Author:** ![ananth-annamalai](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/ananth-annamalai/32/306_2.png) [@ananth-annamalai](https://forum.codecrafters.io/u/ananth-annamalai)\
**Post date:** [May 11, 2024, 2:46am UTC](https://forum.codecrafters.io/t/redis-replication-cf8-test-reads-the-rdb-file-before-the-recieving-the-next-response/347/2 "2024-05-11T02:46:51Z")

</div>

Code:

 ![Screenshot 2024-05-10 at 7.45.37 PM](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/1X/8d8f72b65f60cd4b7c2ebd9a2ba1933770ea78b4.jpeg)

---

<div class="post-metadata">

**Author:** ![ananth-annamalai](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/ananth-annamalai/32/306_2.png) [@ananth-annamalai](https://forum.codecrafters.io/u/ananth-annamalai)\
**Post date:** [May 11, 2024, 6:02pm UTC](https://forum.codecrafters.io/t/redis-replication-cf8-test-reads-the-rdb-file-before-the-recieving-the-next-response/347/3 "2024-05-11T18:02:16Z")

</div>

Please ignore this thread. My stupid ass is appending \r\n at two places.

---

<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:** [June 3, 2024, 7:38pm UTC](https://forum.codecrafters.io/t/redis-replication-cf8-test-reads-the-rdb-file-before-the-recieving-the-next-response/347/4 "2024-06-03T19:38:14Z")

</div>

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

---

<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:** [June 4, 2024, 2:28am UTC](https://forum.codecrafters.io/t/redis-replication-cf8-test-reads-the-rdb-file-before-the-recieving-the-next-response/347/5 "2024-06-04T02:28:15Z")

</div>

Note: I’ve updated the title of this post to include the stage ID (#CF8). You can learn about the stages rename here: [Upcoming change: Stages overhaul](https://forum.codecrafters.io/t/upcoming-change-stages-overhaul/375).
