[
https://issues.apache.org/jira/browse/CASSANDRA-9414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14699717#comment-14699717
]
Joshua McKenzie commented on CASSANDRA-9414:
--------------------------------------------
Going to hijack this ticket (since it's quite possibly the descendant of the
original flaky test failure).
Error:
{noformat}
Error Message
java.nio.file.AccessDeniedException:
build\test\cassandra\commitlog;69\CommitLog-5-1439816200722.log
Stacktrace
FSWriteError in build\test\cassandra\commitlog;69\CommitLog-5-1439816200722.log
at
org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:132)
at
org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:149)
at
org.apache.cassandra.db.commitlog.CommitLogSegmentManager.recycleSegment(CommitLogSegmentManager.java:359)
at
org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:167)
at
org.apache.cassandra.db.commitlog.CommitLog.startUnsafe(CommitLog.java:439)
at
org.apache.cassandra.db.commitlog.CommitLog.resetUnsafe(CommitLog.java:412)
at
org.apache.cassandra.db.CommitLogTest.testDeleteIfNotDirty(CommitLogTest.java:186)
Caused by: java.nio.file.AccessDeniedException:
build\test\cassandra\commitlog;69\CommitLog-5-1439816200722.log
at
sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at
sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
at
sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
at java.nio.file.Files.delete(Files.java:1126)
at
org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:126)
{noformat}
Consistency:
[Flaky|http://cassci.datastax.com/view/cassandra-2.2/job/cassandra-2.2_utest_win32/lastCompletedBuild/testReport/org.apache.cassandra.db/CommitLogTest/testDeleteIfNotDirty/history/]
Env: CI only. Cannot repro locally.
> 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)