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

**URL:** <https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-cluster-metadata-log-file/3754>\
**Category:** Challenges\
**Tags:** challenge:kafka\
**Created:** [December 28, 2024, 8:18am UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-cluster-metadata-log-file/3754 "2024-12-28T08:18:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoms07](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/yoms07/32/3749_2.png) [@yoms07](https://forum.codecrafters.io/u/yoms07)\
**Post date:** [December 28, 2024, 8:18am UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-cluster-metadata-log-file/3754/1 "2024-12-28T08:18:01Z")

</div>

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?

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/4/4c4ea03375b654a60a64ad29bee6e0359a438955.jpeg)

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [December 28, 2024, 8:52am UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-cluster-metadata-log-file/3754/2 "2024-12-28T08:52:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jamestjw](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/jamestjw/32/3144_2.png) [@jamestjw](https://forum.codecrafters.io/u/jamestjw)\
**Post date:** [December 29, 2024, 12:30am UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-cluster-metadata-log-file/3754/3 "2024-12-29T00:30:13Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![yoms07](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/yoms07/32/3749_2.png) [@yoms07](https://forum.codecrafters.io/u/yoms07)\
**Post date:** [December 29, 2024, 3:34am UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-cluster-metadata-log-file/3754/4 "2024-12-29T03:34:23Z")

</div>

Yes the actual file will be found at that path

---

<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:** [January 5, 2025, 11:52pm UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-cluster-metadata-log-file/3754/5 "2025-01-05T23:52:51Z")

</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:** ![Chirag-Kathuria-009](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/chirag-kathuria-009/32/2868_2.png) [@Chirag-Kathuria-009](https://forum.codecrafters.io/u/Chirag-Kathuria-009)\
**Post date:** [January 10, 2025, 2:18pm UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-cluster-metadata-log-file/3754/6 "2025-01-10T14:18:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yoms07](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/yoms07/32/3749_2.png) [@yoms07](https://forum.codecrafters.io/u/yoms07)\
**Post date:** [January 14, 2025, 2:23am UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-cluster-metadata-log-file/3754/9 "2025-01-14T02:23:01Z")

</div>

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

---

<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:** [January 19, 2025, 2:23am UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-cluster-metadata-log-file/3754/10 "2025-01-19T02:23:56Z")

</div>

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