kafka.common.KafkaStorageException: Failed to change the log file suffix from to .deleted for log segment 0

GitHub | abhit011 | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 808#250141708

    GitHub | 8 months ago | abhit011
    kafka.common.KafkaStorageException: Failed to change the log file suffix from to .deleted for log segment 0
  2. 0

    Can't move MS Access file after opening JDBC connection on it

    Stack Overflow | 2 years ago | IceBox13
    com.mycompany.weeklyimport.FileException: Failed to move file [C:\temp\hold\temp.mdb] to [C:\temp\error\temp.mdb]
  3. 0

    GitHub comment 86#295739167

    GitHub | 1 month ago | Mikuana
    java.nio.file.FileSystemException: C:\Users\cboyd\AppData\Local\Temp\r4j_skel_datasets_845161764568953133.R -> C:\Users\cboyd\.PyCharm2017.1\system\r_skeletons\1636418232\datasets.R: The process cannot access the file because it is being used by another process.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Windows: moving a file that was previously mapped in memory fails

    Stack Overflow | 3 years ago | Antoine Wils
    java.nio.file.FileSystemException: C:\Users\Administrator\AppData\Local\Temp\manipulated.txt -> C:\Users\Administrator\AppData\Local\Temp\target.txt: The process cannot access the file because it is being used by another process.
  6. 0

    Renaming a file throwing Exception in thread "main" java.nio.file.FileSystemException:

    Stack Overflow | 3 years ago | Vignesh Vino
    java.nio.file.FileSystemException: D:\tempm\watch\watchplc.jar -> D:\tempm\watch\watchplc_processing.jar: The process cannot access the file because it is being used by another process.
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.nio.file.FileSystemException

    C:kafka_2.11-0.10.0.1kafka-logs2\07-2\00000000000000000000.log -> C:kafka_2.11-0.10.0.1kafka-logs2\07-2\00000000000000000000.log.deleted: The process cannot access the file because it is being used by another process.

    at sun.nio.fs.WindowsException.translateToIOException()
  2. Java RT
    Files.move
    1. sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
    2. sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
    3. sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387)
    4. sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
    5. java.nio.file.Files.move(Files.java:1395)
    5 frames
  3. Apache Kafka
    Utils.atomicMoveWithFallback
    1. org.apache.kafka.common.utils.Utils.atomicMoveWithFallback(Utils.java:670)
    1 frame
  4. Apache Kafka
    Log$$anonfun$deleteOldSegments$1.apply
    1. kafka.log.FileMessageSet.renameTo(FileMessageSet.scala:370)
    2. kafka.log.LogSegment.changeFileSuffixes(LogSegment.scala:265)
    3. kafka.log.Log.kafka$log$Log$$asyncDeleteSegment(Log.scala:832)
    4. kafka.log.Log.kafka$log$Log$$deleteSegment(Log.scala:823)
    5. kafka.log.Log$$anonfun$deleteOldSegments$1.apply(Log.scala:579)
    6. kafka.log.Log$$anonfun$deleteOldSegments$1.apply(Log.scala:579)
    6 frames
  5. Scala
    List.foreach
    1. scala.collection.immutable.List.foreach(List.scala:381)
    1 frame
  6. Apache Kafka
    LogManager$$anonfun$cleanupLogs$3.apply
    1. kafka.log.Log.deleteOldSegments(Log.scala:579)
    2. kafka.log.LogManager.kafka$log$LogManager$$cleanupExpiredSegments(LogManager.scala:427)
    3. kafka.log.LogManager$$anonfun$cleanupLogs$3.apply(LogManager.scala:458)
    4. kafka.log.LogManager$$anonfun$cleanupLogs$3.apply(LogManager.scala:456)
    4 frames
  7. Scala
    TraversableLike$WithFilter.foreach
    1. scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:733)
    2. scala.collection.Iterator$class.foreach(Iterator.scala:893)
    3. scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
    4. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
    5. scala.collection.AbstractIterable.foreach(Iterable.scala:54)
    6. scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:732)
    6 frames
  8. Apache Kafka
    CoreUtils$$anon$1.run
    1. kafka.log.LogManager.cleanupLogs(LogManager.scala:456)
    2. kafka.log.LogManager$$anonfun$startup$1.apply$mcV$sp(LogManager.scala:192)
    3. kafka.utils.KafkaScheduler$$anonfun$1.apply$mcV$sp(KafkaScheduler.scala:110)
    4. kafka.utils.CoreUtils$$anon$1.run(CoreUtils.scala:56)
    4 frames
  9. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    7. java.lang.Thread.run(Thread.java:745)
    7 frames