[
https://issues.apache.org/jira/browse/CASSANDRA-9414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14704072#comment-14704072
]
Paulo Motta commented on CASSANDRA-9414:
----------------------------------------
Sometimes I get a variant of this error even with dtest:
{noformat}
======================================================================
ERROR: split_test (sstablesplit_test.TestSSTableSplit)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\Paulo\Repositories\cassandra-dtest\dtest.py", line 542, in
tearDown
self._cleanup_cluster()
File "C:\Users\Paulo\Repositories\cassandra-dtest\dtest.py", line 239, in
_cleanup_cluster
self.cluster.remove()
File "c:\users\paulo\repositories\ccm\ccmlib\cluster.py", line 223, in remove
common.rmdirs(self.get_path())
File "c:\users\paulo\repositories\ccm\ccmlib\common.py", line 156, in rmdirs
shutil.rmtree(u"\\\\?\\" + path)
File "C:\tools\python2\lib\shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\tools\python2\lib\shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\tools\python2\lib\shutil.py", line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "C:\tools\python2\lib\shutil.py", line 250, in rmtree
os.remove(fullname)
WindowsError: [Error 5] Access is denied:
u'\\\\?\\c:\\users\\paulo\\appdata\\local\\temp\\dtest-6dz1zm\\test\\node1\\commitlogs\\CommitLog-6-1440042394664.log'
{noformat}
> Windows utest 2.2: org.apache.cassandra.db.CommitLogTest.testDeleteIfNotDirty
> intermittent failure
> --------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-9414
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9414
> Project: Cassandra
> Issue Type: Bug
> Reporter: Joshua McKenzie
> Assignee: Joshua McKenzie
> Priority: Minor
> Labels: Windows
> Fix For: 2.2.x
>
>
> Failure is intermittent enough that bisect is proving to be more hassle than
> it's worth. Seems pretty consistent in CI.
> {noformat}
> [junit] Testcase:
> testDeleteIfNotDirty(org.apache.cassandra.db.CommitLogTest): Caused an
> ERROR
> [junit] java.nio.file.AccessDeniedException:
> build\test\cassandra\commitlog;0\CommitLog-5-1431965988394.log
> [junit] FSWriteError in
> build\test\cassandra\commitlog;0\CommitLog-5-1431965988394.log
> [junit] at
> org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:131)
> [junit] at
> org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:148)
> [junit] at
> org.apache.cassandra.db.commitlog.CommitLogSegmentManager.recycleSegment(CommitLogSegmentManager.java:360)
> [junit] at
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:166)
> [junit] at
> org.apache.cassandra.db.commitlog.CommitLog.startUnsafe(CommitLog.java:416)
> [junit] at
> org.apache.cassandra.db.commitlog.CommitLog.resetUnsafe(CommitLog.java:389)
> [junit] at
> org.apache.cassandra.db.CommitLogTest.testDeleteIfNotDirty(CommitLogTest.java:178)
> [junit] Caused by: java.nio.file.AccessDeniedException:
> build\test\cassandra\commitlog;0\CommitLog-5-1431965988394.log
> [junit] at
> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
> [junit] at
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
> [junit] at
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
> [junit] at
> sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
> [junit] at
> sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
> [junit] at java.nio.file.Files.delete(Files.java:1126)
> [junit] at
> org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:125)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)