java.lang.RuntimeException: Failed to rename build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-tmp-ka-5-Index.db to build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-ka-5-Index.db

Apache's JIRA Issue Tracker | Leonid Shalupov | 2 years ago
  1. 0

    {code} java.lang.RuntimeException: Failed to rename build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-tmp-ka-5-Index.db to build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-ka-5-Index.db at org.apache.cassandra.io.util.FileUtils.renameWithConfirm(FileUtils.java:170) ~[main/:na] at org.apache.cassandra.io.util.FileUtils.renameWithConfirm(FileUtils.java:154) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableWriter.rename(SSTableWriter.java:569) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableWriter.rename(SSTableWriter.java:561) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableWriter.close(SSTableWriter.java:535) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableWriter.finish(SSTableWriter.java:470) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableRewriter.finishAndMaybeThrow(SSTableRewriter.java:349) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableRewriter.finish(SSTableRewriter.java:324) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableRewriter.finish(SSTableRewriter.java:304) ~[main/:na] at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:200) ~[main/:na] at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[main/:na] at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:75) ~[main/:na] at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59) ~[main/:na] at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionTask.run(CompactionManager.java:226) ~[main/:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_45] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45] Caused by: java.nio.file.FileSystemException: build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-tmp-ka-5-Index.db -> build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-ka-5-Index.db: The process cannot access the file because it is being used by another process. at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86) ~[na:1.7.0_45] at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) ~[na:1.7.0_45] at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:301) ~[na:1.7.0_45] at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287) ~[na:1.7.0_45] at java.nio.file.Files.move(Files.java:1345) ~[na:1.7.0_45] at org.apache.cassandra.io.util.FileUtils.atomicMoveWithFallback(FileUtils.java:184) ~[main/:na] at org.apache.cassandra.io.util.FileUtils.renameWithConfirm(FileUtils.java:166) ~[main/:na] ... 18 common frames omitted {code}

    Apache's JIRA Issue Tracker | 2 years ago | Leonid Shalupov
    java.lang.RuntimeException: Failed to rename build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-tmp-ka-5-Index.db to build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-ka-5-Index.db
  2. 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.
  3. 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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]
  6. 0

    Sequential file IO from different threads fail with FileSystemException

    Stack Overflow | 1 year ago | XSen
    java.nio.file.FileSystemException: C:\Temp\file_0.in -> C:\Temp\file_0.in\file_0.out: 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

      build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-tmp-ka-5-Index.db -> build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-ka-5-Index.db: 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)[na:1.7.0_45]
      2. sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)[na:1.7.0_45]
      3. sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:301)[na:1.7.0_45]
      4. sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)[na:1.7.0_45]
      5. java.nio.file.Files.move(Files.java:1345)[na:1.7.0_45]
      5 frames
    3. org.apache.cassandra
      CompactionTask.runMayThrow
      1. org.apache.cassandra.io.util.FileUtils.atomicMoveWithFallback(FileUtils.java:184)[main/:na]
      2. org.apache.cassandra.io.util.FileUtils.renameWithConfirm(FileUtils.java:166)[main/:na]
      3. org.apache.cassandra.io.util.FileUtils.renameWithConfirm(FileUtils.java:154)[main/:na]
      4. org.apache.cassandra.io.sstable.SSTableWriter.rename(SSTableWriter.java:569)[main/:na]
      5. org.apache.cassandra.io.sstable.SSTableWriter.rename(SSTableWriter.java:561)[main/:na]
      6. org.apache.cassandra.io.sstable.SSTableWriter.close(SSTableWriter.java:535)[main/:na]
      7. org.apache.cassandra.io.sstable.SSTableWriter.finish(SSTableWriter.java:470)[main/:na]
      8. org.apache.cassandra.io.sstable.SSTableRewriter.finishAndMaybeThrow(SSTableRewriter.java:349)[main/:na]
      9. org.apache.cassandra.io.sstable.SSTableRewriter.finish(SSTableRewriter.java:324)[main/:na]
      10. org.apache.cassandra.io.sstable.SSTableRewriter.finish(SSTableRewriter.java:304)[main/:na]
      11. org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:200)[main/:na]
      11 frames
    4. Apache Cassandra
      WrappedRunnable.run
      1. org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)[main/:na]
      1 frame
    5. org.apache.cassandra
      CompactionManager$BackgroundCompactionTask.run
      1. org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:75)[main/:na]
      2. org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59)[main/:na]
      3. org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionTask.run(CompactionManager.java:226)[main/:na]
      3 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[na:1.7.0_45]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)[na:1.7.0_45]
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_45]
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_45]
      5. java.lang.Thread.run(Thread.java:744)[na:1.7.0_45]
      5 frames