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

Branimir Lambov commented on CASSANDRA-8992:
--------------------------------------------

Patch up for review 
[here|https://github.com/apache/cassandra/compare/trunk...blambov:8992-commitlogtest].

The storage service shutdown hook will hang indefinitely if flushes cannot 
complete for whatever reason. Test timeout does not help as it the hook (at 
least on Linux) is being run post-timeout.

I found two different reasons for this happening in CommitLogTest:
- compaction needing commit log while it is being reset unsafely
- commit failure policy tests followed by later truncate test

The patch fixes the two problems above, the test appears to have stopped 
hanging locally for me. I'm not sure if it is a good idea to introduce a 
timeout on the flushes in the shutdown hook, so I left that unchanged.

> CommitLogTest hangs intermittently
> ----------------------------------
>
>                 Key: CASSANDRA-8992
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8992
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tests
>         Environment: trunk HEAD (commit 1279009)
>            Reporter: Michael Shuler
>            Assignee: Branimir Lambov
>             Fix For: 3.0
>
>         Attachments: system.log
>
>
> CommitLogTest hangs about 20% of the time in trunk. I haven't seen this 
> happen in 2.1, yet, but will have to loop over it to be sure.
> {noformat}
> 21:26:15     [junit] Testsuite: org.apache.cassandra.db.CommitLogTest
> 21:46:15 Build timed out (after 20 minutes). Marking the build as aborted.
> {noformat}
> I was able to repro locally, looping over the test and have attached the 
> system.log from that repro.



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

Reply via email to