# Respond for valid topic and partition #gg1

**URL:** <https://forum.codecrafters.io/t/respond-for-valid-topic-and-partition-gg1/15907>\
**Category:** Challenges\
**Tags:** challenge:kafka\
**Created:** [February 14, 2026, 5:33pm UTC](https://forum.codecrafters.io/t/respond-for-valid-topic-and-partition-gg1/15907 "2026-02-14T17:33:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![samer-hamood](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/samer-hamood/32/16636_2.png) [@samer-hamood](https://forum.codecrafters.io/u/samer-hamood)\
**Post date:** [February 14, 2026, 5:33pm UTC](https://forum.codecrafters.io/t/respond-for-valid-topic-and-partition-gg1/15907/1 "2026-02-14T17:33:57Z")

</div>

Hello, how do we associate the directory with the partition? I read that the broker uses meta.properties to do that; could you give more information on this?

Currently, the tests pass without the condition that there exists a partition record containing the UUID of the directory it is associated with. Because I don’t know where to get that directory, I can’t fulfil that condition, so the tests may fail at some point in the future.

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:** [February 15, 2026, 6:58am UTC](https://forum.codecrafters.io/t/respond-for-valid-topic-and-partition-gg1/15907/3 "2026-02-15T06:58:38Z")

</div>

Hey @samer-hamood, the short answer is that you don’t need to associate the partition with a directory here, it’s already [associated in the metadata](https://binspec.org/kafka-cluster-metadata?highlight=239-254).

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/f/1/f18d45d332415d9dc9460e45db4ccfe8e3c146d0.png)

You also don’t need to validate the directory UUID for this stage, because the existing data is already valid.

If you’re interested, I’ve opened [a PR](https://github.com/codecrafters-io/binspec/pull/37) explaining this in more details.

Let me know if you’d like any further clarification!

---

<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:** [February 15, 2026, 7:23am UTC](https://forum.codecrafters.io/t/respond-for-valid-topic-and-partition-gg1/15907/4 "2026-02-15T07:23:19Z")

</div>

@samer-hamood To answer your question about “where to get that directory”:

Note that your broker is started with the configuration file `/tmp/server.properties`:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/5/4/54e10ade6dd55738656deb0306699d7debb5b1ca.png)

Inside /tmp/server.properties, you’ll find:

```auto
log.dirs=/tmp/kraft-combined-logs

```

In general, multiple directories can be specified as a comma-separated list.

To locate the relevant directory, iterate through the paths listed in log.dirs and inspect the `meta.properties` file inside each directory.

---

<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:** [February 23, 2026, 11:52am UTC](https://forum.codecrafters.io/t/respond-for-valid-topic-and-partition-gg1/15907/6 "2026-02-23T11:52:36Z")

</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:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [February 28, 2026, 11:53am UTC](https://forum.codecrafters.io/t/respond-for-valid-topic-and-partition-gg1/15907/7 "2026-02-28T11:53:10Z")

</div>

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