一次kafka重启过程中,broker启动失败,报错:
3:50:49.243 PM ERROR LogManager
There was an error in one of the threads during logs loading: java.lang.NumberFormatException: For input string: "00000000000000000000_txt"
3:50:49.245 PM FATAL KafkaServer
[KafkaServer id=258] Fatal error during KafkaServer startup. Prepare to shutdown
java.lang.NumberFormatException: For input string: "00000000000000000000_txt"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:441)
at java.lang.Long.parseLong(Long.java:483)
at scala.collection.immutable.StringLike$class.toLong(StringLike.scala:277)
at scala.collection.immutable.StringOps.toLong(StringOps.scala:29)
at kafka.log.Log$.offsetFromFile(Log.scala:1803)
at kafka.log.Log$$anonfun$loadSegmentFiles$3.apply(Log.scala:300)
at kafka.log.Log$$anonfun$loadSegmentFiles$3.apply(Log.scala:297)
at scala.collection.TraversableLike$WithFilter