Question about ea7: List for a single partition. cluster metadata log file

Hi, does the cluster metada log file binary content in binspec is the same as the binary in test case?

I dump the content in the test case and found that [Record Batch#2].[Batch Length] is different from binspec.
Is this expected?

The data isn’t the same, we use randomized values in tests so batch length etc. can vary. The structure should be the same though, only the data would be randomized.

so to test this locally, I should copy the bytes from binspec and place them at /tmp/kraft-combined-logs/__cluster_metadata-0/00000000000000000000.log? And when I run the tests the actual file will be found at that path?

Yes the actual file will be found at that path

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

Hi , I couldn’t locate this log file or this folder anywhere could you please help me to find this file.

/tmp/kraft-combined-logs/__cluster_metadata-0/00000000000000000000.log

just run the test codecrafters test or if you want to run locally, copy the content of the metadata file to the exact path.

1 Like

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