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

Joshua McKenzie commented on CASSANDRA-8308:
--------------------------------------------

Unit tests are clean on both linux and windows on trunk on jdk7 on our CI 
environment, and have 2 failure on jdk8 on linux.  Also, I'm running 7u71 
locally on Windows and don't see these problems either.

I'd expect we'd have heard more from other developers regarding this if it was 
a widespread issue so I'm inclined to suspect your environment before digging 
in and changing code.  Have you done a new clone of the git repo and tried to 
test on a completely clean checkout?

Even if you remove the 1st call to {{CommitLog.instance.resetUnsafe()}} in 
{{SchemaLoader.cleanupAndLeaveDirs}}, there's still a second call at the end of 
that method that should also hang if your theory as to why it's failing is 
correct.

Is COMMIT-LOG-ALLOCATOR not running?  Since CommitLog is a singleton, I would 
expect the allocator thread would be running since the managerThread is started 
in the constructor for CommitLogSegmentManager which is called in the 
singleton's constructor - unless I'm missing something.


> Windows: Commitlog access violations on unit tests
> --------------------------------------------------
>
>                 Key: CASSANDRA-8308
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8308
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Joshua McKenzie
>            Assignee: Joshua McKenzie
>            Priority: Minor
>              Labels: Windows
>             Fix For: 3.0
>
>         Attachments: 8308_v1.txt, 8308_v2.txt, 8308_v3.txt
>
>
> We have four unit tests failing on trunk on Windows, all with 
> FileSystemException's related to the SchemaLoader:
> {noformat}
> [junit] Test 
> org.apache.cassandra.db.compaction.DateTieredCompactionStrategyTest FAILED
> [junit] Test org.apache.cassandra.cql3.ThriftCompatibilityTest FAILED
> [junit] Test org.apache.cassandra.io.sstable.SSTableRewriterTest FAILED
> [junit] Test org.apache.cassandra.repair.LocalSyncTaskTest FAILED
> {noformat}
> Example error:
> {noformat}
>     [junit] Caused by: java.nio.file.FileSystemException: 
> build\test\cassandra\commitlog;0\CommitLog-5-1415908745965.log: The process 
> cannot access the file because it is being used by another process.
>     [junit]
>     [junit]     at 
> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
>     [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:1079)
>     [junit]     at 
> org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:125)
> {noformat}



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

Reply via email to