# Question about ea7: List for a single partition - log file load

**URL:** <https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-log-file-load/3913>\
**Category:** Challenges\
**Tags:** challenge:kafka\
**Created:** [January 3, 2025, 2:52am UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-log-file-load/3913 "2025-01-03T02:52:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![harveysanders](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/harveysanders/32/279_2.png) [@harveysanders](https://forum.codecrafters.io/u/harveysanders)\
**Post date:** [January 3, 2025, 2:52am UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-log-file-load/3913/1 "2025-01-03T02:52:39Z")

</div>

Hi, I’m not sure if this is intentional, but in some cases the metadata log file not available by the time the application runs.  
My app attempts to open the file soon after start up, and sometimes I get this error:

```auto
[tester::#EA7] Running tests for Stage #EA7 (Listing Partitions - List for a single partition)
[tester::#EA7] $ ./your_program.sh /tmp/server.properties
[tester::#EA7] [Serializer] Writing log files to: /tmp/kraft-combined-logs
[tester::#EA7] [Serializer] - Wrote file to: /tmp/server.properties
[tester::#EA7] [Serializer] - Wrote file to: /tmp/kraft-combined-logs/meta.properties
[your_program] 2025/01/03 02:12:27 open topics metadata log file: open /tmp/kraft-combined-logs/__cluster_metadata-0/00000000000000000000.log: no such file or directory
[tester::#EA7] [Serializer] - Wrote file to: /tmp/kraft-combined-logs/.kafka_cleanshutdown
[tester::#EA7] [Serializer] - Wrote file to: /tmp/kraft-combined-logs/__cluster_metadata-0/partition.metadata
[tester::#EA7] [Serializer] - Wrote file to: /tmp/kraft-combined-logs/__cluster_metadata-0/00000000000000000000.log
[tester::#EA7] [Serializer] Finished writing log files to: /tmp/kraft-combined-logs
[tester::#EA7] Connecting to broker at: localhost:9092
[tester::#EA7] Looks like your program has terminated. A Kafka server is expected to be a long-running process.
[tester::#EA7] Test failed

```

If the intention is to write while starting the app, it may be helpful to mention that the file should be opened later. If this behavior is part of the challenge, then disregard this message : )

Thanks

---

<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 3, 2025, 2:55am UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-log-file-load/3913/2 "2025-01-03T02:55:31Z")

</div>

Hi @harveysanders, thanks for highlighting the issue! We’ll investigate it and keep you updated with any progress.

---

<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 6, 2025, 6:55am UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-log-file-load/3913/5 "2025-01-06T06:55:31Z")

</div>

Hi @harveysanders, we’re fixing the issue in [this PR](https://github.com/codecrafters-io/kafka-tester/pull/41). Thanks for highlighting it!

---

<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 11, 2025, 6:57am UTC](https://forum.codecrafters.io/t/question-about-ea7-list-for-a-single-partition-log-file-load/3913/7 "2025-01-11T06:57:05Z")

</div>

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