hachikuji commented on a change in pull request #11603:
URL: https://github.com/apache/kafka/pull/11603#discussion_r804998909



##########
File path: shell/src/main/java/org/apache/kafka/shell/MetadataNodeManager.java
##########
@@ -318,6 +320,16 @@ private void handleCommitImpl(MetadataRecordType type, 
ApiMessage message)
                     node.create(record.key()).setContents(record.value() + "");
                 break;
             }
+            case PRODUCER_IDS_RECORD: {
+                ProducerIdsRecord record = (ProducerIdsRecord) message;
+                DirectoryNode lastBlockNode = 
data.root.mkdirs("lastProducerIdBlock");

Review comment:
       I don't feel too strongly, but it seems a little odd to have the next 
and last blocks at the same level with different fields. How about this instead?
   
   - `/producerIds/nextBlockStartId`
   - `/producerIds/lastBlockBrokerId`
   - `/producerIds/lastBlockBrokerEpoch`
   
   Basically a more literal translation of the `ProducerIdsRecord`.




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