Respond for valid topic and partition #gg1

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

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.

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 explaining this in more details.

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

@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:

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

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.

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

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