Fix flaky test 01079_parallel_alter_detach_table_zookeeper by samay-sharma · Pull Request #94752 · ClickHouse/ClickHouse · GitHub
Skip to content

Fix flaky test 01079_parallel_alter_detach_table_zookeeper#94752

Closed
samay-sharma wants to merge 2 commits into
masterfrom
fix_01079
Closed

Fix flaky test 01079_parallel_alter_detach_table_zookeeper#94752
samay-sharma wants to merge 2 commits into
masterfrom
fix_01079

Conversation

@samay-sharma

@samay-sharma samay-sharma commented Jan 21, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Fixes #91413

All the test failures I observed fail due to TIMEOUT_EXCEEDED due to distributed_ddl_task_timeout during DROP TABLE. I've modified the lines running DROP TABLE to ignore TIMEOUT_EXCEEDED errors. In all the example the test failures, the final output matches indicating no issues with the test run itself.

Example failures:
[[1]](https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=88383&sha=aceb3e0e20aea76f3a95dfb92c4213fb7eaa7adb&name_0=PR&name_1=Stateless+tests+%28amd_binary%2C+old+analyzer%2C+s3+storage%2C+DatabaseReplicated%2C+sequential%29&name_1=Stateless+tests+%28amd_binary%2C+old+analyzer%2C+s3+storage%2C+DatabaseReplicated%2C+sequential%29&name_2=Tests
#88383), [[2]](https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=88490&sha=c627b0c7f0c609119caf233a4b89a1bfa3919364&name_0=PR&name_1=Stateless%20tests%20%28amd_binary%2C%20old%20analyzer%2C%20s3%20storage%2C%20DatabaseReplicated%2C%20sequential%29&name_1=Stateless%20tests%20%28amd_binary%2C%20old%20analyzer%2C%20s3%20storage%2C%20DatabaseReplicated%2C%20sequential%29
#88490), [[3]](https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=88827&sha=df34d890cffbf1de8b664ba1ab66d896b7de1ab6&name_0=PR&name_1=Stateless%20tests%20%28amd_binary%2C%20old%20analyzer%2C%20s3%20storage%2C%20DatabaseReplicated%2C%20sequential%29&name_1=Stateless%20tests%20%28amd_binary%2C%20old%20analyzer%2C%20s3%20storage%2C%20DatabaseReplicated%2C%20sequential%29
#88827), [[4]](https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=89367&sha=05881f0516f7bfb8fcdc62f0833c0fb22213ba96&name_0=PR&name_1=Stateless%20tests%20%28amd_binary%2C%20old%20analyzer%2C%20s3%20storage%2C%20DatabaseReplicated%2C%20sequential%29&name_1=Stateless%20tests%20%28amd_binary%2C%20old%20analyzer%2C%20s3%20storage%2C%20DatabaseReplicated%2C%20sequential%29
#89367), [[5]](https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=88269&sha=0a53cf04e9436bc4c109ef4766044df5aef6c21e&name_0=PR&name_1=Stateless%20tests%20%28amd_binary%2C%20old%20analyzer%2C%20s3%20storage%2C%20DatabaseReplicated%2C%20sequential%29&name_1=Stateless%20tests%20%28amd_binary%2C%20old%20analyzer%2C%20s3%20storage%2C%20DatabaseReplicated%2C%20sequential%29
#88269)

Also, while running the test locally, due to a faulty setup, my test was hanging. I've made a change to the test so that it retries only 3 times and not until it passes.

Previously, the code would continue to loop until the command stopped producing output (i.e. succeeded).
This worked for transient failures. However, in cases where this command continuously fails due to a
previous failure (eg. failed CREATE TABLE), this test would just hang instead of failing gracefully.
The loop is now bounded to have only 3 retries.
@clickhouse-gh

clickhouse-gh Bot commented Jan 21, 2026

Copy link
Copy Markdown
Contributor

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jan 21, 2026
@yariks5s yariks5s self-assigned this Jan 22, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member

@samay-sharma, something else needed here.

@samay-sharma

Copy link
Copy Markdown
Member Author

Yes, will look.

@samay-sharma

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test 01079_parallel_alter_detach_table_zookeeper is flaky

3 participants