You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/01/03 21:05:00 UTC

[jira] [Commented] (KAFKA-9293) NPE in DumpLogSegments with --offsets-decoder

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

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
 
 
   
 
----------------------------------------------------------------
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:
users@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)