You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (Jira)" <ji...@apache.org> on 2021/03/18 21:09:00 UTC

[jira] [Comment Edited] (CASSANDRA-16526) BinLogTest is flaky

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

Brandon Williams edited comment on CASSANDRA-16526 at 3/18/21, 9:08 PM:
------------------------------------------------------------------------

Hmm, even with a single test runner this fails, albeit differently, on both J11 and J8:

{noformat}
[junit-timeout] Testcase: testTrucationReleasesLogSpace(org.apache.cassandra.utils.binlog.BinLogTest):  FAILED
[junit-timeout] missing currentCycle, file=/tmp/foo1324bar/20210318-210254.cq4
[junit-timeout] junit.framework.AssertionFailedError: missing currentCycle, file=/tmp/foo1324bar/20210318-210254.cq4
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueue$StoreSupplier.nextCycle(SingleChronicleQueue.java:931)
[junit-timeout]         at net.openhft.chronicle.queue.impl.WireStorePool.nextCycle(WireStorePool.java:106)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueue.nextCycle(SingleChronicleQueue.java:412)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.nextIndexWithNextAvailableCycle0(SingleChronicleQueueExcerpts.java:1509)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.nextIndexWithNextAvailableCycle(SingleChronicleQueueExcerpts.java:1465)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.endOfCycle(SingleChronicleQueueExcerpts.java:1255)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.next0(SingleChronicleQueueExcerpts.java:1230)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.readingDocument(SingleChronicleQueueExcerpts.java:1175)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.readDocument(SingleChronicleQueueExcerpts.java:1096)
[junit-timeout]         at org.apache.cassandra.utils.binlog.BinLogTest.readBinLogRecords(BinLogTest.java:481)
[junit-timeout]         at org.apache.cassandra.utils.binlog.BinLogTest.lambda$testTrucationReleasesLogSpace$8(BinLogTest.java:444)
[junit-timeout]         at org.apache.cassandra.Util.spinAssertEquals(Util.java:596)
[junit-timeout]         at org.apache.cassandra.Util.spinAssertEquals(Util.java:586)
[junit-timeout]         at org.apache.cassandra.utils.binlog.BinLogTest.testTrucationReleasesLogSpace(BinLogTest.java:444)
{noformat}

Going back to 43c19878e38fbe260f9e6143aa43836e85cf2f44 fails the same way, which fixed this test the last time it was reported flaky, in CASSANDRA-15797. /cc [~yifanc]


was (Author: brandon.williams):
Hmm, even with a single test runner this fails, albeit differently, on both J11 and J8:

{noformat}
[junit-timeout] Testcase: testTrucationReleasesLogSpace(org.apache.cassandra.utils.binlog.BinLogTest):  FAILED
[junit-timeout] missing currentCycle, file=/tmp/foo1324bar/20210318-210254.cq4
[junit-timeout] junit.framework.AssertionFailedError: missing currentCycle, file=/tmp/foo1324bar/20210318-210254.cq4
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueue$StoreSupplier.nextCycle(SingleChronicleQueue.java:931)
[junit-timeout]         at net.openhft.chronicle.queue.impl.WireStorePool.nextCycle(WireStorePool.java:106)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueue.nextCycle(SingleChronicleQueue.java:412)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.nextIndexWithNextAvailableCycle0(SingleChronicleQueueExcerpts.java:1509)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.nextIndexWithNextAvailableCycle(SingleChronicleQueueExcerpts.java:1465)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.endOfCycle(SingleChronicleQueueExcerpts.java:1255)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.next0(SingleChronicleQueueExcerpts.java:1230)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.readingDocument(SingleChronicleQueueExcerpts.java:1175)
[junit-timeout]         at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.readDocument(SingleChronicleQueueExcerpts.java:1096)
[junit-timeout]         at org.apache.cassandra.utils.binlog.BinLogTest.readBinLogRecords(BinLogTest.java:481)
[junit-timeout]         at org.apache.cassandra.utils.binlog.BinLogTest.lambda$testTrucationReleasesLogSpace$8(BinLogTest.java:444)
[junit-timeout]         at org.apache.cassandra.Util.spinAssertEquals(Util.java:596)
[junit-timeout]         at org.apache.cassandra.Util.spinAssertEquals(Util.java:586)
[junit-timeout]         at org.apache.cassandra.utils.binlog.BinLogTest.testTrucationReleasesLogSpace(BinLogTest.java:444)
{noformat}

Going back to 43c19878e38fbe260f9e6143aa43836e85cf2f44 fails the same way, which fixed this test the last time it was reported flaky, in CASSANDRA-15797.

> BinLogTest is flaky
> -------------------
>
>                 Key: CASSANDRA-16526
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16526
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/unit
>            Reporter: Brandon Williams
>            Assignee: Brandon Williams
>            Priority: Normal
>             Fix For: 4.0-rc
>
>
> Probably due to increasing the runners:
> {noformat}
> java.lang.RuntimeException: java.lang.IllegalStateException: Expected file to exist for cycle: 1616021848, file: /home/jenkins/jenkins-slave/workspace/Cassandra-devbranch-test-compression/jdk/jdk_11_latest/label/cassandra/tmp/foo17bar/20210317-225728T.cq4.
> minCycle: 1616021850, maxCycle: 1616021852
> Available files: [20210317-225730T.cq4, 20210317-225732T.cq4]
> 	at org.apache.cassandra.utils.binlog.BinLogTest.readBinLogRecords(BinLogTest.java:492)
> 	at org.apache.cassandra.utils.binlog.BinLogTest.lambda$testTrucationReleasesLogSpace$8(BinLogTest.java:444)
> 	at org.apache.cassandra.Util.spinAssertEquals(Util.java:605)
> 	at org.apache.cassandra.Util.spinAssertEquals(Util.java:595)
> 	at org.apache.cassandra.utils.binlog.BinLogTest.testTrucationReleasesLogSpace(BinLogTest.java:444)
> 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> Caused by: java.lang.IllegalStateException: Expected file to exist for cycle: 1616021848, file: /home/jenkins/jenkins-slave/workspace/Cassandra-devbranch-test-compression/jdk/jdk_11_latest/label/cassandra/tmp/foo17bar/20210317-225728T.cq4.
> minCycle: 1616021850, maxCycle: 1616021852
> Available files: [20210317-225730T.cq4, 20210317-225732T.cq4]
> 	at net.openhft.chronicle.queue.impl.single.SingleChronicleQueue$StoreSupplier.nextCycle(SingleChronicleQueue.java:1157)
> 	at net.openhft.chronicle.queue.impl.WireStorePool.nextCycle(WireStorePool.java:66)
> 	at net.openhft.chronicle.queue.impl.single.SingleChronicleQueue.nextCycle(SingleChronicleQueue.java:507)
> 	at net.openhft.chronicle.queue.impl.single.StoreTailer.nextIndexWithNextAvailableCycle(StoreTailer.java:507)
> 	at net.openhft.chronicle.queue.impl.single.StoreTailer.endOfCycle(StoreTailer.java:323)
> 	at net.openhft.chronicle.queue.impl.single.StoreTailer.next0(StoreTailer.java:295)
> 	at net.openhft.chronicle.queue.impl.single.StoreTailer.readingDocument(StoreTailer.java:202)
> 	at net.openhft.chronicle.queue.impl.single.StoreTailer.readDocument(StoreTailer.java:108)
> 	at org.apache.cassandra.utils.binlog.BinLogTest.readBinLogRecords(BinLogTest.java:481)
> {noformat}



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