KafkaServer端报错分析

Server端启动时报错

[2020-06-16 20:16:22,741] ERROR There was an error in one of the threads during logs loading: java.lang.InternalError: a fault occurred in a recent unsafe memory access operation in compiled Java code (LogManager:99)
[2020-06-16 20:16:22,766] FATAL [Kafka Server 0], Fatal error during KafkaServer startup. Prepare to shutdown (KafkaServer:118)
java.lang.InternalError: a fault occurred in a recent unsafe memory access operation in compiled Java code
    at java.nio.HeapByteBuffer.(HeapByteBuffer.java:57)
    at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
    at org.apache.kafka.common.record.FileLogInputStream$FileChannelRecordBatch.loadBatchWithSize(FileLogInputStream.java:209)
    at org.apache.kafka.common.record.FileLogInputStream$FileChannelRecordBatch.loadFullBatch(FileLogInputStream.java:192)
    at org.apache.kafka.common.record.FileLogInputStream$FileChannelRecordBatch.ensureValid(FileLogInputStream.java:164)
    at kafka.log.LogSegment$$anonfun$recover$1.apply(LogSegment.scala:265)
    at kafka.log.LogSegment$$anonfun$recover$1.apply(LogSegment.scala:264)
    at scala.collection.Iterator$class.foreach(Iterator.scala:891)
    at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
    at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
    at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
    at kafka.log.LogSegment.recover(LogSegment.scala:264)
    at kafka.log.Log.kafka$log$Log$$recoverSegment(Log.scala:335)
    at kafka.log.Log$$anonfun$loadSegmentFiles$3.apply(Log.scala:314)
kafka.log.LogManager$$anonfun$loadLogs$2$$anonfun$5$$anonfun$apply$12$$anonfun$apply$1.apply$mcV$sp(LogManager.scala:172)
    at kafka.utils.CoreUtils$$anon$1.run(CoreUtils.scala:57)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

WARN Found a corrupted index file due to requirement failed: Corrupt index found

testTopic-4/00000000000000400047.index 索引文件, 损坏了?

[2020-06-16 20:16:22,482] WARN Found a corrupted index file due to requirement failed: Corrupt index found, index file (/home/app/appdata/kafka/kafka-logs/testTopic-4/00000000000000400047.index) has non-zero size but the last offset is 400047 which is no larger than the base offset 400047.}. deleting /home/app/appdata/kafka/kafka-logs/testTopic-4/00000000000000400047.timeindex, /home/app/appdata/kafka/kafka-logs/testTopic-4/00000000000000400047.index, and /home/app/appdata/kafka/kafka-logs/testTopic-4/00000000000000400047.txnindex and rebuilding index... (Log:85)

Server端运行时报错

你可能感兴趣的:(KafkaServer端报错分析)