Gao Fei created KAFKA-15902: ------------------------------- Summary: Topic partitions cannot be automatically cleaned up, leading to disk space occupation Key: KAFKA-15902 URL: https://issues.apache.org/jira/browse/KAFKA-15902 Project: Kafka Issue Type: Bug Affects Versions: 2.4.0 Reporter: Gao Fei
we are unable to determine the cause of this situation, but the error logs from the faulty node process keep showing the following error: {code:java} ERROR Uncaught exception in scheduled task 'kafka-log-retention' (kafka.utils.KafkaScheduler) java.nio.BufferOverflowException at java.base/java.nio.Buffer.nextPutIndex(Buffer.java:674) at java.base/java.nio.DirectByteBuffer.putLong(DirectByteBuffer.java:882) at kafka.log.TimeIndex.$anonfun$maybeAppend$1(TimeIndex.scala:134) at kafka.log.TimeIndex.maybeAppend(TimeIndex.scala:114) at kafka.log.LogSegment.onBecomeInactiveSegment(LogSegment.scala:506) at kafka.log.Log.$anonfun$roll$8(Log.scala:2066) at kafka.log.Log.$anonfun$roll$8$adapted(Log.scala:2066) at scala.Option.foreach(Option.scala:437) at kafka.log.Log.$anonfun$roll$2(Log.scala:2066) at kafka.log.Log.roll(Log.scala:2482) at kafka.log.Log.$anonfun$deleteSegments$2(Log.scala:1859) at kafka.log.Log.deleteSegments(Log.scala:2482) at kafka.log.Log.deleteRetentionMsBreachedSegments(Log.scala:1847) at kafka.log.Log.deleteOldSegments(Log.scala:1916) at kafka.log.LogManager.$anonfun$cleanupLogs$3(LogManager.scala:1092) at kafka.log.LogManager.$anonfun$cleanupLogs$3$adapted(LogManager.scala:1089) at scala.collection.immutable.List.foreach(List.scala:333) at kafka.log.LogManager.cleanupLogs(LogManager.scala:1089) at kafka.log.LogManager.$anonfun$startupWithConfigOverrides$2(LogManager.scala:429) at kafka.utils.KafkaScheduler.$anonfun$schedule$2(KafkaScheduler.scala:114) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)