shravansingh created CASSANDRA-17207:
----------------------------------------

             Summary: The process cannot access the file because it is being 
used by another process.
                 Key: CASSANDRA-17207
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17207
             Project: Cassandra
          Issue Type: Bug
            Reporter: shravansingh


 
ERROR [COMMIT-LOG-ALLOCATOR] 2021-12-11 17:02:00,989 
JVMStabilityInspector.java:140 - JVM state determined to be unstable.  Exiting 
forcefully due to:
org.apache.cassandra.io.FSWriteError: java.nio.file.FileSystemException: 
<basePath>\commitlog\CommitLog-6-1636406548826.log: The process cannot access 
the file because it is being used by another process.
 
    at 
org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:138) 
~[apache-cassandra-3.0.14.jar:3.0.14]
    at 
org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:155) 
~[apache-cassandra-3.0.14.jar:3.0.14]
    at 
org.apache.cassandra.db.commitlog.CommitLogSegment.discard(CommitLogSegment.java:342)
 ~[apache-cassandra-3.0.14.jar:3.0.14]
    at 
org.apache.cassandra.db.commitlog.CommitLogSegmentManager$2.run(CommitLogSegmentManager.java:379)
 ~[apache-cassandra-3.0.14.jar:3.0.14]
    at 
org.apache.cassandra.db.commitlog.CommitLogSegmentManager$1.runMayThrow(CommitLogSegmentManager.java:156)
 ~[apache-cassandra-3.0.14.jar:3.0.14]
    at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) 
[apache-cassandra-3.0.14.jar:3.0.14]
    at 
org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:79)
 [apache-cassandra-3.0.14.jar:3.0.14]
    at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_301]
Caused by: java.nio.file.FileSystemException: 
<basePath>\commitlog\CommitLog-6-1636406548826.log: The process cannot access 
the file because it is being used by another process.
 
    at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) 
~[na:1.8.0_301]
    at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) 
~[na:1.8.0_301]
    at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) 
~[na:1.8.0_301]
    at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) 
~[na:1.8.0_301]
    at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source) 
~[na:1.8.0_301]
    at java.nio.file.Files.delete(Unknown Source) ~[na:1.8.0_301]
    at 
org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:132) 
~[apache-cassandra-3.0.14.jar:3.0.14]
    ... 7 common frames omitted


It seems similar to https://issues.apache.org/jira/browse/CASSANDRA-8390, but 
it was resolved in 2.2 beta, though I am facing this in version 3.0.14



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to