You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Andres de la Peña (Jira)" <ji...@apache.org> on 2021/06/22 12:02:00 UTC

[jira] [Commented] (CASSANDRA-16754) Flaky o.a.c.distributed.test.SchemaTest

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

Andres de la Peña commented on CASSANDRA-16754:
-----------------------------------------------

[PR|https://github.com/apache/cassandra/pull/1079] and CI results with a few multiplexer runs:

* [j8|https://app.circleci.com/pipelines/github/adelapena/cassandra/609/workflows/ca0bc153-20ac-41f4-9919-d3b295c63fb2]
* [j11|https://app.circleci.com/pipelines/github/adelapena/cassandra/609/workflows/475f8ec9-3fd3-4118-9809-061cfb8a5fbe]

> Flaky o.a.c.distributed.test.SchemaTest
> ---------------------------------------
>
>                 Key: CASSANDRA-16754
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16754
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/dtest/java
>            Reporter: Andres de la Peña
>            Assignee: Andres de la Peña
>            Priority: Normal
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The JVM dtest {{org.apache.cassandra.distributed.test.SchemaTest}} is flaky:
>  [https://ci-cassandra.apache.org/job/Cassandra-4.0.0/34/testReport/junit/org.apache.cassandra.distributed.test/SchemaTest/readRepairWithCompaction_2/]
> {code:java}
> Error Message
> FSWriteError in /home/cassandra/cassandra/tmp/dtests5018452609443646984/node2/commitlog/CommitLog-7-1624286958980.log
> Stacktrace
> java.lang.RuntimeException: FSWriteError in /home/cassandra/cassandra/tmp/dtests5018452609443646984/node2/commitlog/CommitLog-7-1624286958980.log
> 	at org.apache.cassandra.distributed.impl.Instance.lambda$startup$10(Instance.java:582)
> 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
> 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
> 	at java.base/java.lang.Thread.run(Thread.java:834)
> Caused by: FSWriteError in /home/cassandra/cassandra/tmp/dtests5018452609443646984/node2/commitlog/CommitLog-7-1624286958980.log
> 	at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:256)
> 	at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:273)
> 	at org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.handleReplayedSegment(AbstractCommitLogSegmentManager.java:349)
> 	at org.apache.cassandra.db.commitlog.CommitLog.recoverSegmentsOnDisk(CommitLog.java:178)
> 	at org.apache.cassandra.distributed.impl.Instance.lambda$startup$10(Instance.java:508)
> Caused by: java.nio.file.NoSuchFileException: /home/cassandra/cassandra/tmp/dtests5018452609443646984/node2/commitlog/CommitLog-7-1624286958980.log
> 	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
> 	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
> 	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
> 	at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:249)
> 	at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
> 	at java.base/java.nio.file.Files.delete(Files.java:1142)
> 	at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:250)
> {code}
> Although it doesn't fail frequently on CI it's quite easy to reproduce it locally.
> I think the failure is caused by the two tests on the class not waiting for the future returned by {{IInstance#shutdown()}}.



--
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