You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jon Meredith (Jira)" <ji...@apache.org> on 2022/01/05 23:40:00 UTC
[jira] [Created] (CASSANDRA-17239) Race in CompactionExecutorTest
Jon Meredith created CASSANDRA-17239:
----------------------------------------
Summary: Race in CompactionExecutorTest
Key: CASSANDRA-17239
URL: https://issues.apache.org/jira/browse/CASSANDRA-17239
Project: Cassandra
Issue Type: Bug
Components: Test/unit
Reporter: Jon Meredith
Assignee: Jon Meredith
CompactionExecutorTest has a race between the runnable/callable under test completing
and the {{afterExecute}} method stashing it for the test. Replace the wait/sleep loop
with a {{SimpleCondition}} that is signaled once the test task throwable has been recorded.
This seems fairly hard to hit but has happened on CI. It took about 2600 iterations on my MacBook to trigger, but you can artificially hit frequently by adding a sleep at the start of the afterExecute method.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org