[ 
https://issues.apache.org/jira/browse/KAFKA-15371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17805460#comment-17805460
 ] 

Oleg Opolev commented on KAFKA-15371:
-------------------------------------

I was never able to read the metadata in the cluster. Versions kafka 3.6.0

./bin/kafka-metadata-shell.sh -s 
../kafka_2.13-3.6.0/log/__cluster_metadata-0/00000000000008838965.log
Loading...
[2024-01-11 12:23:15,640] ERROR Encountered shell fault: Error loading metadata 
log record from offset 100320740 (org.apache.kafka.server.fault.LoggingFaultH
andler)
java.lang.IllegalStateException: Tried to change broker 2, but that broker was 
not registered.
        at 
org.apache.kafka.image.ClusterDelta.getBrokerOrThrow(ClusterDelta.java:83)
        at org.apache.kafka.image.ClusterDelta.replay(ClusterDelta.java:112)
        at org.apache.kafka.image.MetadataDelta.replay(MetadataDelta.java:321)
        at org.apache.kafka.image.MetadataDelta.replay(MetadataDelta.java:229)
        at 
org.apache.kafka.image.loader.MetadataBatchLoader.replay(MetadataBatchLoader.java:257)
        at 
org.apache.kafka.image.loader.MetadataBatchLoader.loadBatch(MetadataBatchLoader.java:135)
        at 
org.apache.kafka.image.loader.MetadataLoader.lambda$handleCommit$1(MetadataLoader.java:361)
        at 
org.apache.kafka.queue.KafkaEventQueue$EventContext.run(KafkaEventQueue.java:127)
                                                                         at 
org.apache.kafka.queue.KafkaEventQueue$EventHandler.handleEvents(KafkaEventQueue.java:210)
        at 
org.apache.kafka.queue.KafkaEventQueue$EventHandler.run(KafkaEventQueue.java:181)
        at java.base/java.lang.Thread.run(Thread.java:840)
[2024-01-11 12:23:15,645] ERROR Encountered shell fault: Error loading metadata 
log record from offset 100320741 (org.apache.kafka.server.fault.LoggingFaultH
andler)
java.lang.NullPointerException: Cannot invoke 
"org.apache.kafka.image.TopicImage.partitions()" because "this.image" is null
        at org.apache.kafka.image.TopicDelta.replay(TopicDelta.java:76)
        at org.apache.kafka.image.TopicsDelta.replay(TopicsDelta.java:93)
        at org.apache.kafka.image.MetadataDelta.replay(MetadataDelta.java:277)
        at org.apache.kafka.image.MetadataDelta.replay(MetadataDelta.java:202)
        at 
org.apache.kafka.image.loader.MetadataBatchLoader.replay(MetadataBatchLoader.java:257)
        at 
org.apache.kafka.image.loader.MetadataBatchLoader.loadBatch(MetadataBatchLoader.java:135)
        at 
org.apache.kafka.image.loader.MetadataLoader.lambda$handleCommit$1(MetadataLoader.java:361)
        at 
org.apache.kafka.queue.KafkaEventQueue$EventContext.run(KafkaEventQueue.java:127)
                                                                         at 
org.apache.kafka.queue.KafkaEventQueue$EventHandler.handleEvents(KafkaEventQueue.java:210)
        at 
org.apache.kafka.queue.KafkaEventQueue$EventHandler.run(KafkaEventQueue.java:181)
        at java.base/java.lang.Thread.run(Thread.java:840)

> MetadataShell is stuck when bootstrapping
> -----------------------------------------
>
>                 Key: KAFKA-15371
>                 URL: https://issues.apache.org/jira/browse/KAFKA-15371
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 3.5.1
>            Reporter: Deng Ziming
>            Priority: Major
>         Attachments: image-2023-08-17-10-35-01-039.png, 
> image-2023-08-17-10-35-36-067.png, image-2023-10-31-09-04-53-966.png, 
> image-2023-10-31-09-11-53-118.png, image-2023-10-31-09-12-19-051.png, 
> image-2023-10-31-09-15-34-821.png
>
>
> I  downloaded the 3.5.1 package and startup it, then use metadata shell to 
> inspect the data
>  
> {code:java}
> // shell
> bin/kafka-metadata-shell.sh --snapshot 
> /tmp/kraft-combined-logs/__cluster_metadata-0/00000000000000000000.log  {code}
> Then process will stuck at loading.
>  
>  
> !image-2023-08-17-10-35-36-067.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to