You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Berenguer Blasi (Jira)" <ji...@apache.org> on 2020/05/27 10:34:00 UTC

[jira] [Commented] (CASSANDRA-15825) Fix flaky test incrementalSSTableSelection - org.apache.cassandra.db.streaming.CassandraStreamManagerTest

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

Berenguer Blasi commented on CASSANDRA-15825:
---------------------------------------------

I noticed commenting out the other test in that class made this one fail consistently. So there seems to be cross talk between test cases. It seems that on the 4th sstable a compaction is triggered and that can remove the sstables under our feet depending on who is faster. The fix I applied is to prevent the compaction from running. I hope it makes sense. Waiting on CI now.

> Fix flaky test incrementalSSTableSelection - org.apache.cassandra.db.streaming.CassandraStreamManagerTest
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-15825
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15825
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/unit
>            Reporter: David Capwell
>            Assignee: Berenguer Blasi
>            Priority: Normal
>             Fix For: 4.0-alpha
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Build link: https://app.circleci.com/pipelines/github/dcapwell/cassandra/287/workflows/06baf3db-7094-431f-920d-e8fcd1da9cce/jobs/1398 
> {code}
> java.lang.RuntimeException: java.nio.file.NoSuchFileException: /tmp/cassandra/build/test/cassandra/data:2/ks_1589913975959/tbl-051c0a709a0111eab5fb6f52366536f8/na-4-big-Statistics.db
> 	at org.apache.cassandra.io.util.ChannelProxy.openChannel(ChannelProxy.java:55)
> 	at org.apache.cassandra.io.util.ChannelProxy.<init>(ChannelProxy.java:66)
> 	at org.apache.cassandra.io.util.RandomAccessReader.open(RandomAccessReader.java:315)
> 	at org.apache.cassandra.io.sstable.metadata.MetadataSerializer.deserialize(MetadataSerializer.java:126)
> 	at org.apache.cassandra.io.sstable.metadata.MetadataSerializer.deserialize(MetadataSerializer.java:136)
> 	at org.apache.cassandra.io.sstable.format.SSTableReader.reloadSSTableMetadata(SSTableReader.java:2047)
> 	at org.apache.cassandra.db.streaming.CassandraStreamManagerTest.mutateRepaired(CassandraStreamManagerTest.java:128)
> 	at org.apache.cassandra.db.streaming.CassandraStreamManagerTest.incrementalSSTableSelection(CassandraStreamManagerTest.java:175)
> Caused by: java.nio.file.NoSuchFileException: /tmp/cassandra/build/test/cassandra/data:2/ks_1589913975959/tbl-051c0a709a0111eab5fb6f52366536f8/na-4-big-Statistics.db
> 	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
> 	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
> 	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
> 	at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
> 	at java.nio.channels.FileChannel.open(FileChannel.java:287)
> 	at java.nio.channels.FileChannel.open(FileChannel.java:335)
> 	at org.apache.cassandra.io.util.ChannelProxy.openChannel(ChannelProxy.java:51)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org