cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei Yuan Cho (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-8390) The process cannot access the file because it is being used by another process
Date Mon, 02 Feb 2015 10:48:35 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-8390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14301135#comment-14301135
] 

Wei Yuan Cho edited comment on CASSANDRA-8390 at 2/2/15 10:48 AM:
------------------------------------------------------------------

Hi there,

I have a similar error as this thread and I'm running Windows Server 2008.
I have set to DiskAccessMode to standard and I'm still getting the following error

INFO  [main] 2015-01-23 16:41:01,578 DatabaseDescriptor.java:211 - DiskAccessMode is standard,
indexAccessMode is standard


{quote}
ERROR [NonPeriodicTasks:1] 2015-01-30 22:02:02,284 SSTableDeletingTask.java:89 - Unable to
delete \var\lib\cassandra\data\CM\Alerts\CM-Alerts-ka-137342-Data.db (it will be removed on
server restart; we'll also retry after GC)
ERROR [NonPeriodicTasks:1] 2015-01-30 22:02:02,284 SSTableDeletingTask.java:89 - Unable to
delete \var\lib\cassandra\data\CM\Alerts\CM-Alerts-ka-137341-Data.db (it will be removed on
server restart; we'll also retry after GC)
INFO  [CompactionExecutor:3644] 2015-01-30 22:02:02,284 CompactionTask.java:252 - Compacted
4 sstables to [\var\lib\cassandra\data\CM\Alerts\CM-Alerts-ka-137344,].  4,830,501 bytes to
2,453,934 (~50% of original) in 1,433ms = 1.633115MB/s.  13 total partitions merged to 4.
 Partition merge counts were {1:1, 4:3, }
INFO  [CompactionExecutor:3645] 2015-01-30 22:02:02,565 CompactionTask.java:252 - Compacted
4 sstables to [\var\lib\cassandra\data\system\compactions_in_progress-55080ab05d9c388690a4acb25fe1f77b\system-compactions_in_progress-ka-5659,].
 424 bytes to 42 (~9% of original) in 285ms = 0.000141MB/s.  4 total partitions merged to
1.  Partition merge counts were {2:2, }
ERROR [NonPeriodicTasks:1] 2015-01-30 22:02:02,659 CassandraDaemon.java:153 - Exception in
thread Thread[NonPeriodicTasks:1,5,main]
org.apache.cassandra.io.FSWriteError: java.nio.file.FileSystemException: \var\lib\cassandra\data\CM\Alerts\CM-Alerts-ka-137339-Index.db:
The process cannot access the file because it is being used by another process.

	at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:135) ~[apache-cassandra-2.1.1.jar:2.1.1]
	at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:121) ~[apache-cassandra-2.1.1.jar:2.1.1]
	at org.apache.cassandra.io.sstable.SSTable.delete(SSTable.java:113) ~[apache-cassandra-2.1.1.jar:2.1.1]
	at org.apache.cassandra.io.sstable.SSTableDeletingTask.run(SSTableDeletingTask.java:94) ~[apache-cassandra-2.1.1.jar:2.1.1]
	at org.apache.cassandra.io.sstable.SSTableReader$6.run(SSTableReader.java:664) ~[apache-cassandra-2.1.1.jar:2.1.1]
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[na:1.7.0_71]
	at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.7.0_71]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown
Source) ~[na:1.7.0_71]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
~[na:1.7.0_71]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_71]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_71]
	at java.lang.Thread.run(Unknown Source) [na:1.7.0_71]
Caused by: java.nio.file.FileSystemException: \var\lib\cassandra\data\CM\Alerts\CM-Alerts-ka-137339-Index.db:
The process cannot access the file because it is being used by another process.

	at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) ~[na:1.7.0_71]
	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) ~[na:1.7.0_71]
	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) ~[na:1.7.0_71]
	at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) ~[na:1.7.0_71]
	at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source) ~[na:1.7.0_71]
	at java.nio.file.Files.delete(Unknown Source) ~[na:1.7.0_71]
	at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:131) ~[apache-cassandra-2.1.1.jar:2.1.1]
	... 11 common frames omitted
ERROR [NonPeriodicTasks:1] 2015-01-30 22:02:02,925 StorageService.java:377 - Stopping gossiper
WARN  [NonPeriodicTasks:1] 2015-01-30 22:02:02,925 StorageService.java:291 - Stopping gossip
by operator request
INFO  [NonPeriodicTasks:1] 2015-01-30 22:02:02,925 Gossiper.java:1317 - Announcing shutdown
ERROR [NonPeriodicTasks:1] 2015-01-30 22:02:04,925 StorageService.java:382 - Stopping RPC
server
INFO  [NonPeriodicTasks:1] 2015-01-30 22:02:04,925 ThriftServer.java:142 - Stop listening
to thrift clients
ERROR [NonPeriodicTasks:1] 2015-01-30 22:02:04,956 StorageService.java:387 - Stopping native
transport
INFO  [NonPeriodicTasks:1] 2015-01-30 22:02:05,519 Server.java:213 - Stop listening for CQL
clients
{quote}

I've read that 3.0 will fix the root cause of this but is there any workaround I could do
about this?  I'll attach my log files

Attached
https://issues.apache.org/jira/secure/attachment/12695903/CassandraDiedWithDiskAccessModeStandardLogs.7z


was (Author: choweiyuan):
Hi there,

I have a similar error as this thread and I'm running Windows Server 2008.
I have set to DiskAccessMode to standard and I'm still getting the following error

INFO  [main] 2015-01-23 16:41:01,578 DatabaseDescriptor.java:211 - DiskAccessMode is standard,
indexAccessMode is standard


{quote}
ERROR [NonPeriodicTasks:1] 2015-01-30 22:02:02,284 SSTableDeletingTask.java:89 - Unable to
delete \var\lib\cassandra\data\CM\Alerts\CM-Alerts-ka-137342-Data.db (it will be removed on
server restart; we'll also retry after GC)
ERROR [NonPeriodicTasks:1] 2015-01-30 22:02:02,284 SSTableDeletingTask.java:89 - Unable to
delete \var\lib\cassandra\data\CM\Alerts\CM-Alerts-ka-137341-Data.db (it will be removed on
server restart; we'll also retry after GC)
INFO  [CompactionExecutor:3644] 2015-01-30 22:02:02,284 CompactionTask.java:252 - Compacted
4 sstables to [\var\lib\cassandra\data\CM\Alerts\CM-Alerts-ka-137344,].  4,830,501 bytes to
2,453,934 (~50% of original) in 1,433ms = 1.633115MB/s.  13 total partitions merged to 4.
 Partition merge counts were {1:1, 4:3, }
INFO  [CompactionExecutor:3645] 2015-01-30 22:02:02,565 CompactionTask.java:252 - Compacted
4 sstables to [\var\lib\cassandra\data\system\compactions_in_progress-55080ab05d9c388690a4acb25fe1f77b\system-compactions_in_progress-ka-5659,].
 424 bytes to 42 (~9% of original) in 285ms = 0.000141MB/s.  4 total partitions merged to
1.  Partition merge counts were {2:2, }
ERROR [NonPeriodicTasks:1] 2015-01-30 22:02:02,659 CassandraDaemon.java:153 - Exception in
thread Thread[NonPeriodicTasks:1,5,main]
org.apache.cassandra.io.FSWriteError: java.nio.file.FileSystemException: \var\lib\cassandra\data\CM\Alerts\CM-Alerts-ka-137339-Index.db:
The process cannot access the file because it is being used by another process.

	at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:135) ~[apache-cassandra-2.1.1.jar:2.1.1]
	at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:121) ~[apache-cassandra-2.1.1.jar:2.1.1]
	at org.apache.cassandra.io.sstable.SSTable.delete(SSTable.java:113) ~[apache-cassandra-2.1.1.jar:2.1.1]
	at org.apache.cassandra.io.sstable.SSTableDeletingTask.run(SSTableDeletingTask.java:94) ~[apache-cassandra-2.1.1.jar:2.1.1]
	at org.apache.cassandra.io.sstable.SSTableReader$6.run(SSTableReader.java:664) ~[apache-cassandra-2.1.1.jar:2.1.1]
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[na:1.7.0_71]
	at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.7.0_71]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown
Source) ~[na:1.7.0_71]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
~[na:1.7.0_71]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_71]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_71]
	at java.lang.Thread.run(Unknown Source) [na:1.7.0_71]
Caused by: java.nio.file.FileSystemException: \var\lib\cassandra\data\CM\Alerts\CM-Alerts-ka-137339-Index.db:
The process cannot access the file because it is being used by another process.

	at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) ~[na:1.7.0_71]
	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) ~[na:1.7.0_71]
	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) ~[na:1.7.0_71]
	at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) ~[na:1.7.0_71]
	at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source) ~[na:1.7.0_71]
	at java.nio.file.Files.delete(Unknown Source) ~[na:1.7.0_71]
	at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:131) ~[apache-cassandra-2.1.1.jar:2.1.1]
	... 11 common frames omitted
ERROR [NonPeriodicTasks:1] 2015-01-30 22:02:02,925 StorageService.java:377 - Stopping gossiper
WARN  [NonPeriodicTasks:1] 2015-01-30 22:02:02,925 StorageService.java:291 - Stopping gossip
by operator request
INFO  [NonPeriodicTasks:1] 2015-01-30 22:02:02,925 Gossiper.java:1317 - Announcing shutdown
ERROR [NonPeriodicTasks:1] 2015-01-30 22:02:04,925 StorageService.java:382 - Stopping RPC
server
INFO  [NonPeriodicTasks:1] 2015-01-30 22:02:04,925 ThriftServer.java:142 - Stop listening
to thrift clients
ERROR [NonPeriodicTasks:1] 2015-01-30 22:02:04,956 StorageService.java:387 - Stopping native
transport
INFO  [NonPeriodicTasks:1] 2015-01-30 22:02:05,519 Server.java:213 - Stop listening for CQL
clients
{quote}

I've read that 3.0 will fix the root cause of this but is there any workaround I could do
about this?  I'll attach my log files

> The process cannot access the file because it is being used by another process
> ------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-8390
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8390
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Ilya Komolkin
>            Assignee: Joshua McKenzie
>             Fix For: 2.1.3
>
>         Attachments: CassandraDiedWithDiskAccessModeStandardLogs.7z, NoHostAvailableLogs.zip
>
>
> {code}21:46:27.810 [NonPeriodicTasks:1] ERROR o.a.c.service.CassandraDaemon - Exception
in thread Thread[NonPeriodicTasks:1,5,main]
> org.apache.cassandra.io.FSWriteError: java.nio.file.FileSystemException: E:\Upsource_12391\data\cassandra\data\kernel\filechangehistory_t-a277b560764611e48c8e4915424c75fe\kernel-filechangehistory_t-ka-33-Index.db:
The process cannot access the file because it is being used by another process.
>  
>                 at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:135)
~[cassandra-all-2.1.1.jar:2.1.1]
>                 at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:121)
~[cassandra-all-2.1.1.jar:2.1.1]
>                 at org.apache.cassandra.io.sstable.SSTable.delete(SSTable.java:113) ~[cassandra-all-2.1.1.jar:2.1.1]
>                 at org.apache.cassandra.io.sstable.SSTableDeletingTask.run(SSTableDeletingTask.java:94)
~[cassandra-all-2.1.1.jar:2.1.1]
>                 at org.apache.cassandra.io.sstable.SSTableReader$6.run(SSTableReader.java:664)
~[cassandra-all-2.1.1.jar:2.1.1]
>                 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
~[na:1.7.0_71]
>                 at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_71]
>                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
~[na:1.7.0_71]
>                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
~[na:1.7.0_71]
>                 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
~[na:1.7.0_71]
>                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[na:1.7.0_71]
>                 at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
> Caused by: java.nio.file.FileSystemException: E:\Upsource_12391\data\cassandra\data\kernel\filechangehistory_t-a277b560764611e48c8e4915424c75fe\kernel-filechangehistory_t-ka-33-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_71]
>                 at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
~[na:1.7.0_71]
>                 at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
~[na:1.7.0_71]
>                 at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
~[na:1.7.0_71]
>                 at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
~[na:1.7.0_71]
>                 at java.nio.file.Files.delete(Files.java:1079) ~[na:1.7.0_71]
>                 at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:131)
~[cassandra-all-2.1.1.jar:2.1.1]
>                 ... 11 common frames omitted{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message