zigarn opened a new pull request #11546:
URL: https://github.com/apache/kafka/pull/11546


   Reproduce current issue:
   
   ```shell
   $ sed -i 
's|log.dirs=/tmp/kraft-combined-logs|+log.dirs=/tmp/kraft-combined-logs,/tmp/kraft-combined-logs2'
 ./config/kraft/server.properties
   
   $ ./bin/kafka-storage.sh format -t R19xNyxMQvqQRGlkGDi2cg -c 
./config/kraft/server.properties
   Formatting /tmp/kraft-combined-logs
   Formatting /tmp/kraft-combined-logs2
   
   $ ./bin/kafka-storage.sh info -c ./config/kraft/server.properties
   Found log directories:
     /tmp/kraft-combined-logs
     /tmp/kraft-combined-logs2
   
   Found metadata: {cluster.id=R19xNyxMQvqQRGlkGDi2cg, node.id=1, version=1}
   
   Found problem:
     Metadata for /tmp/kraft-combined-logs2/meta.properties was 
{cluster.id=R19xNyxMQvqQRGlkGDi2cg, node.id=1, version=1}, but other 
directories featured {cluster.id=R19xNyxMQvqQRGlkGDi2cg, node.id=1, version=1}
   ```
   
   It's reporting that same metadata are not the same...
   
   With this fix:
   
   ```shell
   $ ./bin/kafka-storage.sh info -c ./config/kraft/server.properties
   Found log directories:
     /tmp/kraft-combined-logs
     /tmp/kraft-combined-logs2
   
   Found metadata: {cluster.id=R19xNyxMQvqQRGlkGDi2cg, node.id=1, version=1}
   ```
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to