You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Robert Stupp (Jira)" <ji...@apache.org> on 2020/04/22 15:29:00 UTC
[jira] [Updated] (CASSANDRA-15751)
CustomNowInSecondsTest.testSelectQuery() is flaky
[ https://issues.apache.org/jira/browse/CASSANDRA-15751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Stupp updated CASSANDRA-15751:
-------------------------------------
Fix Version/s: 4.0
> CustomNowInSecondsTest.testSelectQuery() is flaky
> -------------------------------------------------
>
> Key: CASSANDRA-15751
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15751
> Project: Cassandra
> Issue Type: Bug
> Reporter: Robert Stupp
> Assignee: Robert Stupp
> Priority: Normal
> Fix For: 4.0
>
>
> The test {{CustomNowInSecondsTest.testSelectQuery()}} is flaky, because the {{now}} [calculated here|https://github.com/snazy/cassandra/blob/5242f7d4306f034f32e26834df06ff7fc85a3c16/test/unit/org/apache/cassandra/cql3/CustomNowInSecondsTest.java#L57] but [used here|https://github.com/snazy/cassandra/blob/5242f7d4306f034f32e26834df06ff7fc85a3c16/test/unit/org/apache/cassandra/cql3/CustomNowInSecondsTest.java#L70] can be wrong, if the thread running the test method gets stalled.
> The flakiness can be simulated by adding a {{Thread.sleep(1000)}} before the {{executeModify()}}.
--
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