You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yifan Cai (Jira)" <ji...@apache.org> on 2025/02/04 03:26:00 UTC

[jira] [Updated] (CASSSIDECAR-202) Fix flaky test CassandraSidecarDaemonTest

     [ https://issues.apache.org/jira/browse/CASSSIDECAR-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yifan Cai updated CASSSIDECAR-202:
----------------------------------
    Change Category: Quality Assurance
         Complexity: Normal
        Component/s: Build
             Status: Open  (was: Triage Needed)

PR: [https://github.com/apache/cassandra-sidecar/pull/184]

CI: [https://app.circleci.com/pipelines/github/yifan-c/cassandra-sidecar?branch=CASSSIDECAR-202%2Ftrunk]

 

In addition, I tested the flaky test locally with 100 loops. It passes. The command used to launch the repeated test is the following.
{code:java}
COUNTER=0 && while [[ "$(./gradlew :server:test --tests org.apache.cassandra.sidecar.CassandraSidecarDaemonTest --rerun | grep -c 'BUILD SUCCESSFUL')" == "1" ]]; do echo "It was a good run. $COUNTER"; ((COUNTER=COUNTER+1)) done {code}

> Fix flaky test CassandraSidecarDaemonTest
> -----------------------------------------
>
>                 Key: CASSSIDECAR-202
>                 URL: https://issues.apache.org/jira/browse/CASSSIDECAR-202
>             Project: Sidecar for Apache Cassandra
>          Issue Type: Task
>          Components: Build
>            Reporter: Yifan Cai
>            Assignee: Yifan Cai
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {color:#000000}The test is flaky according to CircleCI. The cause is a race condition. When test starts, sidecar server might not yet bind to the port, causing test cases to fail. {color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org