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/01/19 18:41:00 UTC

[jira] [Commented] (CASSANDRA-16229) Flaky jvm-dtest: org.apache.cassandra.distributed.test.ring.NodeNotInRingTest.nodeNotInRingTest

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

Brandon Williams commented on CASSANDRA-16229:
----------------------------------------------

||Branch||Apache CI||
|[CASSANDRA-16229|https://github.com/driftx/cassandra/tree/CASSANDRA-16229]|[ci-cassandra|https://ci-cassandra.apache.org/job/Cassandra-devbranch/309/]|

The test was manually removing endpoints from the gossiper and doing endpoint cleanup incorrectly - after notifying StorageService about a change in state, it should handle all this as necessary.  Doing it manually creates a race somewhere.

> Flaky jvm-dtest: org.apache.cassandra.distributed.test.ring.NodeNotInRingTest.nodeNotInRingTest
> -----------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-16229
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16229
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/dtest/java
>            Reporter: Yifan Cai
>            Assignee: Brandon Williams
>            Priority: Normal
>             Fix For: 4.0-beta
>
>
> Test failed during CI build. Stack trace attached below, 
> [https://app.circleci.com/pipelines/github/yifan-c/cassandra/135/workflows/371dee8e-36d2-41a1-b27f-f7578496a1fe/jobs/681]
> {code:java}
> Testcase: nodeNotInRingTest(org.apache.cassandra.distributed.test.ring.NodeNotInRingTest):  FAILED
> expected:<86> but was:<100>
> junit.framework.AssertionFailedError: expected:<86> but was:<100>
>  at org.apache.cassandra.distributed.test.ring.NodeNotInRingTest.nodeNotInRingTest(NodeNotInRingTest.java:60)
>  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){code}
> Besides the flakiness, the expected and the actual values are swapped in the assertion statement.



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