TaiJuWu commented on PR #18386:
URL: https://github.com/apache/kafka/pull/18386#issuecomment-2583859007

   We are testing **downgrade** from 4.0 to 3.3 and it **ONLY** work for single 
folder but in KRAFT mode it should be three folders.
   
   The error throw
   ```
   kafka.common.InconsistentBrokerMetadataException: BrokerMetadata is not 
consistent across log.dirs. This could happen if multiple brokers shared a log 
directory (log.dirs) or partial data was manually copied from another broker. 
Found:
   - /mnt/kafka/kafka-metadata-logs -> {node.id=3001, 
directory.id=hqW-A8W0pbE8dJmM2otDPQ, version=1, 
cluster.id=I2eXt9rvSnyhct8BYmW6-w}
   - /mnt/kafka/kafka-data-logs-2 -> {node.id=3001, 
directory.id=nbiO8yKUacnyIijAkoFcFg, version=1, 
cluster.id=I2eXt9rvSnyhct8BYmW6-w}
   - /mnt/kafka/kafka-data-logs-1 -> {node.id=3001, 
directory.id=2-xUs6eYlJtkVUcl6lJmtQ, version=1, 
cluster.id=I2eXt9rvSnyhct8BYmW6-w}
   ```
   
   What https://github.com/apache/kafka/pull/13130 do is split ZK mode and 
KRAFT mode, and if we work on KRAFT mode we only check clusterID and nodeID to 
avoid compatibility issue.
   That why I said the only solution is back port this PR to 3.3, does it make 
sense?
   


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to