[ https://issues.apache.org/jira/browse/KAFKA-9293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16993964#comment-16993964 ]
ASF GitHub Bot commented on KAFKA-9293: --------------------------------------- hachikuji commented on pull request #7820: KAFKA-9293; Fix NPE in DumpLogSegments offsets parser and display tombstone keys URL: https://github.com/apache/kafka/pull/7820 Fixes an NPE when UserData in a member's subscription is null. Also modifies the output logic so that we show the keys of tombstones for both group and transaction metadata. Also adds test cases. ### 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > NPE in DumpLogSegments with --offsets-decoder > --------------------------------------------- > > Key: KAFKA-9293 > URL: https://issues.apache.org/jira/browse/KAFKA-9293 > Project: Kafka > Issue Type: Bug > Reporter: Jason Gustafson > Assignee: Jason Gustafson > Priority: Major > > {code} > Exception in thread "main" java.lang.NullPointerException > at org.apache.kafka.common.utils.Utils.toArray(Utils.java:230) > at > kafka.tools.DumpLogSegments$OffsetsMessageParser.$anonfun$parseGroupMetadata$2(DumpLogSegments.scala:287) > at > kafka.tools.DumpLogSegments$OffsetsMessageParser.parseGroupMetadata(DumpLogSegments.scala:284) > at > kafka.tools.DumpLogSegments$OffsetsMessageParser.parse(DumpLogSegments.scala:317) > at > kafka.tools.DumpLogSegments$.$anonfun$dumpLog$2(DumpLogSegments.scala:372) > at > kafka.tools.DumpLogSegments$.$anonfun$dumpLog$2$adapted(DumpLogSegments.scala:343) > at scala.collection.Iterator.foreach(Iterator.scala:941) > at scala.collection.Iterator.foreach$(Iterator.scala:941) > at scala.collection.AbstractIterator.foreach(Iterator.scala:1429) > at scala.collection.IterableLike.foreach(IterableLike.scala:74) > at scala.collection.IterableLike.foreach$(IterableLike.scala:73) > at scala.collection.AbstractIterable.foreach(Iterable.scala:56) > at > kafka.tools.DumpLogSegments$.$anonfun$dumpLog$1(DumpLogSegments.scala:343) > at > kafka.tools.DumpLogSegments$.$anonfun$dumpLog$1$adapted(DumpLogSegments.scala:340) > at scala.collection.Iterator.foreach(Iterator.scala:941) > at scala.collection.Iterator.foreach$(Iterator.scala:941) > at scala.collection.AbstractIterator.foreach(Iterator.scala:1429) > at scala.collection.IterableLike.foreach(IterableLike.scala:74) > at scala.collection.IterableLike.foreach$(IterableLike.scala:73) > at scala.collection.AbstractIterable.foreach(Iterable.scala:56) > at kafka.tools.DumpLogSegments$.dumpLog(DumpLogSegments.scala:340) > at > kafka.tools.DumpLogSegments$.$anonfun$main$1(DumpLogSegments.scala:60) > at kafka.tools.DumpLogSegments$.main(DumpLogSegments.scala:51) > at kafka.tools.DumpLogSegments.main(DumpLogSegments.scala) > {code} > The problem is that "userData" is nullable, but the dump log tool doesn't > check for null. -- This message was sent by Atlassian Jira (v8.3.4#803005)