[
https://issues.apache.org/jira/browse/CASSANDRA-17584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17550938#comment-17550938
]
Andres de la Peña commented on CASSANDRA-17584:
-----------------------------------------------
Nice investigation, I agree that the problem is {{LoadBroadcaster}} modifying
{{Gossiper#endpointStateMap}} in the background.
The failure can be reproduced locally by playing with the delays supplied by
the call to {{scheduleWithFixedDelay}} that is made by
{{{}LoadBroadcaster#startBroadcasting{}}}. It can also be reproduced without
any changes with some more iterations in the multiplexer, as it's shown by
[this
run|https://app.circleci.com/pipelines/github/adelapena/cassandra/1670/workflows/314282a7-2530-4494-aa98-01b67099c3c2/jobs/17534].
The proposed patch allowing to provide a custom endpoint state map to
{{GossipInfoTable}} looks good to me, I have only left a couple of minor
suggestions on the PR.
> Fix flaky test -
> org.apache.cassandra.db.virtual.GossipInfoTableTest.testSelectAllWithStateTransitions
> ------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-17584
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17584
> Project: Cassandra
> Issue Type: Bug
> Components: Feature/Virtual Tables
> Reporter: Brandon Williams
> Assignee: Stefan Miklosovic
> Priority: Normal
> Fix For: 4.1-beta, 4.x
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> h3. Error Message
> ['LOAD' is expected to be null] expected:<null> but was:<Value(122848.0,28)>
> h3. Stacktrace
> junit.framework.AssertionFailedError: ['LOAD' is expected to be null]
> expected:<null> but was:<Value(122848.0,28)> at
> org.apache.cassandra.db.virtual.GossipInfoTableTest.assertValue(GossipInfoTableTest.java:174)
> at
> org.apache.cassandra.db.virtual.GossipInfoTableTest.testSelectAllWithStateTransitions(GossipInfoTableTest.java:96)
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]