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

Ala' Alkhaldi edited comment on CASSANDRA-7334 at 6/2/14 9:11 PM:
------------------------------------------------------------------

I reproduced the failure on my Windows 7 machine. After checking system.log I 
found the following IOException:

{code:title=File-rename exception}
ERROR [COMMIT-LOG-ALLOCATOR] 2014-06-02 14:00:28,319 Caller+0    at 
org.apache.cassandra.SchemaLoader$1.uncaughtException(SchemaLoader.java:64)
 - Fatal exception in thread Thread[COMMIT-LOG-ALLOCATOR,5,main]
org.apache.cassandra.io.FSWriteError: java.io.IOException: Rename from 
build\test\cassandra\commitlog\CommitLog-4-1401742823192.log to 1401742823195 
failed
        at 
org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:178)
 ~[main/:na]
        at 
org.apache.cassandra.db.commitlog.CommitLogSegmentManager$4.call(CommitLogSegmentManager.java:363)
 ~[main/:na]
        at 
org.apache.cassandra.db.commitlog.CommitLogSegmentManager$4.call(CommitLogSegmentManager.java:360)
 ~[main/:na]
        at 
org.apache.cassandra.db.commitlog.CommitLogSegmentManager$1.runMayThrow(CommitLogSegmentManager.java:148)
 ~[main/:na]
        at 
org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) 
~[main/:na]
        at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_55]
Caused by: java.io.IOException: Rename from 
build\test\cassandra\commitlog\CommitLog-4-1401742823192.log to 1401742823195 
failed
        at 
org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:150)
 ~[main/:na]
        ... 5 common frames omitted
{code}

Checking previous JIRA issues, I came accros 
[CASSANDRA-4337|https://issues.apache.org/jira/browse/CASSANDRA-4337] which 
looks similar to this issue.

I suspect that the test does not close the mmaped buffer for the renamed file. 


was (Author: ala.alkhaldi):
This failure is caused by the issue reported in 
[CASSANDRA-4337|https://issues.apache.org/jira/browse/CASSANDRA-4337]

> RecoveryManagerTest times out on Windows
> ----------------------------------------
>
>                 Key: CASSANDRA-7334
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7334
>             Project: Cassandra
>          Issue Type: Sub-task
>            Reporter: Joshua McKenzie
>            Assignee: Ala' Alkhaldi
>            Priority: Minor
>              Labels: Windows
>             Fix For: 3.0
>
>
> Takes 11 seconds on a slow linux vm to pass, times out on Windows.
> {code:title=timeout message}
>     [junit] Testcase: 
> org.apache.cassandra.db.RecoveryManagerTest:testRecoverCounter:   Caused an 
> ERROR
>     [junit] Timeout occurred. Please note the time in the report does not 
> reflect the time until the timeout.
>     [junit] junit.framework.AssertionFailedError: Timeout occurred. Please 
> note the time in the report does not reflect the time until the timeout.
>     [junit]
>     [junit]
>     [junit] Test org.apache.cassandra.db.RecoveryManagerTest FAILED (timeout)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to