java.lang.UnsupportedOperationException: empty.head

Apache's JIRA Issue Tracker | John Fung | 4 years ago
  1. 0

    * In this case, there are 15 log segment files in broker-1 data dir: ls -l /tmp/kafka_server_1_logs/test_1-0/ total 240 -rw-r--r-- 1 jfung eng 16 Oct 16 10:41 00000000000000000000.index -rw-r--r-- 1 jfung eng 10440 Oct 16 10:40 00000000000000000000.log -rw-r--r-- 1 jfung eng 8 Oct 16 10:41 00000000000000000020.index -rw-r--r-- 1 jfung eng 10440 Oct 16 10:40 00000000000000000020.log . . . -rw-r--r-- 1 jfung eng 8 Oct 16 10:41 00000000000000000280.index -rw-r--r-- 1 jfung eng 10440 Oct 16 10:41 00000000000000000280.log * The following are the dump log segment of the first log segment file bin/kafka-run-class.sh kafka.tools.DumpLogSegments /tmp/kafka_server_1_logs/test_1-0/00000000000000000000.log Dumping /tmp/kafka_server_1_logs/test_1-0/00000000000000000000.log Starting offset: 0 offset: 0 isvalid: true payloadsize: 500 magic: 2 compresscodec: NoCompressionCodec crc: 1663889063 offset: 1 isvalid: true payloadsize: 500 magic: 2 compresscodec: NoCompressionCodec crc: 2803454828 offset: 2 isvalid: true payloadsize: 500 magic: 2 compresscodec: NoCompressionCodec crc: 683347625 . . . offset: 18 isvalid: true payloadsize: 500 magic: 2 compresscodec: NoCompressionCodec crc: 1892511043 offset: 19 isvalid: true payloadsize: 500 magic: 2 compresscodec: NoCompressionCodec crc: 601297044 * Output of SimpleConsumerShell: . . . next offset = 16 Topic:test_1:ThreadID:2:MessageID:0000000043:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx next offset = 17 Topic:test_1:ThreadID:3:MessageID:0000000063:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx next offset = 18 Topic:test_1:ThreadID:4:MessageID:0000000083:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx next offset = 19 Topic:test_1:ThreadID:0:MessageID:0000000003:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx next offset = 19 Topic:test_1:ThreadID:0:MessageID:0000000003:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx next offset = 19 Topic:test_1:ThreadID:0:MessageID:0000000003:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx next offset = 19 Topic:test_1:ThreadID:0:MessageID:0000000003:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx . . . * It appears that SimpleConsumerShell doesn't advance to the next log segment file * It should probably block inside the while loop to prevent infinite looping

    Apache's JIRA Issue Tracker | 4 years ago | John Fung
    java.lang.UnsupportedOperationException: empty.head
  2. 0

    * In this case, there are 15 log segment files in broker-1 data dir: ls -l /tmp/kafka_server_1_logs/test_1-0/ total 240 -rw-r--r-- 1 jfung eng 16 Oct 16 10:41 00000000000000000000.index -rw-r--r-- 1 jfung eng 10440 Oct 16 10:40 00000000000000000000.log -rw-r--r-- 1 jfung eng 8 Oct 16 10:41 00000000000000000020.index -rw-r--r-- 1 jfung eng 10440 Oct 16 10:40 00000000000000000020.log . . . -rw-r--r-- 1 jfung eng 8 Oct 16 10:41 00000000000000000280.index -rw-r--r-- 1 jfung eng 10440 Oct 16 10:41 00000000000000000280.log * The following are the dump log segment of the first log segment file bin/kafka-run-class.sh kafka.tools.DumpLogSegments /tmp/kafka_server_1_logs/test_1-0/00000000000000000000.log Dumping /tmp/kafka_server_1_logs/test_1-0/00000000000000000000.log Starting offset: 0 offset: 0 isvalid: true payloadsize: 500 magic: 2 compresscodec: NoCompressionCodec crc: 1663889063 offset: 1 isvalid: true payloadsize: 500 magic: 2 compresscodec: NoCompressionCodec crc: 2803454828 offset: 2 isvalid: true payloadsize: 500 magic: 2 compresscodec: NoCompressionCodec crc: 683347625 . . . offset: 18 isvalid: true payloadsize: 500 magic: 2 compresscodec: NoCompressionCodec crc: 1892511043 offset: 19 isvalid: true payloadsize: 500 magic: 2 compresscodec: NoCompressionCodec crc: 601297044 * Output of SimpleConsumerShell: . . . next offset = 16 Topic:test_1:ThreadID:2:MessageID:0000000043:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx next offset = 17 Topic:test_1:ThreadID:3:MessageID:0000000063:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx next offset = 18 Topic:test_1:ThreadID:4:MessageID:0000000083:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx next offset = 19 Topic:test_1:ThreadID:0:MessageID:0000000003:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx next offset = 19 Topic:test_1:ThreadID:0:MessageID:0000000003:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx next offset = 19 Topic:test_1:ThreadID:0:MessageID:0000000003:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx next offset = 19 Topic:test_1:ThreadID:0:MessageID:0000000003:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx . . . * It appears that SimpleConsumerShell doesn't advance to the next log segment file * It should probably block inside the while loop to prevent infinite looping

    Apache's JIRA Issue Tracker | 4 years ago | John Fung
    java.lang.UnsupportedOperationException: empty.head
  3. 0

    FAILED: ResponseParserSpec

    GitHub | 2 years ago | ktoso
    java.lang.UnsupportedOperationException: empty.head
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Topics list is empty

    GitHub | 1 year ago | gayathrisowmya
    play.api.Application$$anon$1: Execution exception[[UnsupportedOperationException: empty.head]]
  6. 0

    Topics list

    GitHub | 2 years ago | talnicolas
    play.api.Application$$anon$1: Execution exception[[UnsupportedOperationException: > empty.head]]

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      empty.head

      at scala.collection.immutable.Vector.head()
    2. Scala
      Vector.head
      1. scala.collection.immutable.Vector.head(Vector.scala:162)
      1 frame
    3. Apache Kafka
      SimpleConsumerShell.main
      1. kafka.consumer.SimpleConsumer$.earliestOrLatestOffset(SimpleConsumer.scala:45)
      2. kafka.tools.SimpleConsumerShell$.main(SimpleConsumerShell.scala:169)
      3. kafka.tools.SimpleConsumerShell.main(SimpleConsumerShell.scala)
      3 frames