Skip to content

Commit

Permalink
Update course-definition.yml: Provide link to hex representation of e…
Browse files Browse the repository at this point in the history
…mpty RDB file
  • Loading branch information
rohitpaulk committed Feb 1, 2024
1 parent a4396d7 commit c955868
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions course-definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -996,16 +996,7 @@ stages:
Here's the hex string of an empty RDB file: `524544495330303131fa0972656469732d76657205372e322e30fa0a72656469732d62697473c040fa056374696d65c26d08bc65fa08757365642d6d656dc2b0c41000fa08616f662d62617365c000fff06e3bfec0ff5aa2`
Here's a more readable [hexdump](https://opensource.com/article/19/8/dig-binary-files-hexdump) representation of the same file:
```
52 45 44 49 53 30 30 31 31 fa 09 72 65 64 69 73 |REDIS0011..redis|
2d 76 65 72 05 37 2e 32 2e 30 fa 0a 72 65 64 69 |-ver.7.2.0..redi|
73 2d 62 69 74 73 c0 40 fa 05 63 74 69 6d 65 c2 |[email protected].|
6d 08 bc 65 fa 08 75 73 65 64 2d 6d 65 6d c2 b0 |m..e..used-mem..|
c4 10 00 fa 08 61 6f 66 2d 62 61 73 65 c0 00 ff |.....aof-base...|
f0 6e 3b fe c0 ff 5a a2 |.n;...Z.|
```
You can find the hex representation of an empty RDB file [here](https://github.com/codecrafters-io/redis-tester/blob/main/internal/assets/empty_rdb_hex.md).
The tester will accept any valid RDB file that is empty, you don't need to send the exact file above.
Expand All @@ -1024,9 +1015,7 @@ stages:
3. `REPLCONF capa eof capa psync2` (expecting `+OK\r\n` back)
4. `PSYNC ? -1` (expecting `+FULLRESYNC <REPL_ID> 0\r\n` back)
After receiving a response to the last command, the tester will expect to receive an RDB file from your server.
Subsequently it will expect a RDB file sent to it from the master.
After receiving a response to the last command, the tester will expect to receive an empty RDB file from your server.
### Notes
Expand Down

0 comments on commit c955868

Please sign in to comment.