I followed the documentation from Redis to build the .rdb file parser. In versions 10 and 7 it works, but when I test against the app, it’s using the version 3 and it doesn’t work anymore.
The challenge states:
The header contains the magic string REDIS , followed by a four-character RDB version number. In this challenge, the test RDB files all use version 7. So, the header is always REDIS0007 .
But this information is wrong.
Any advice on how to deal with this? I’m really stuck.
Would it be possible for the tester to share the file binary content for debugging or at least to “reverse engineer” it? I still can’t figure out what’s wrong, as reading the tests it feels as if the metadata separators 0xFA, 0xFE, and 0xFB were missing, or at least as if the file didn’t have the documentation’s structure. I don’t know how to proceed at this point without the file.
If it’s not possible no worries, it’s understandable and probably it’s just me missing something.
The problem is that my program is not delivering anything because there’s no separator (according to the documentationn 0xFA, 0xFE, 0xFE) from the entries.
So basically, when executing the program locally, it runs correctly and retrieves the data. The same program against the tester is not working.
I tested in different computers and docker containers and it works everywhere but the tests. Is it possible to know where the OS they run on so that I can try to emulate the same error locally?