Fix flaky test 02859_replicated_db_name_zookeeper by alexey-milovidov · Pull Request #101952 · ClickHouse/ClickHouse · GitHub
Skip to content

Fix flaky test 02859_replicated_db_name_zookeeper#101952

Merged
alexey-milovidov merged 1 commit into
masterfrom
fix-02859-replicated-db-name-zookeeper
Apr 8, 2026
Merged

Fix flaky test 02859_replicated_db_name_zookeeper#101952
alexey-milovidov merged 1 commit into
masterfrom
fix-02859-replicated-db-name-zookeeper

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Apr 7, 2026

Copy link
Copy Markdown
Member

The test scans all entries under /clickhouse/databases/ in ZooKeeper and calls toUUID on each path suffix. When other parallel tests create entries with non-UUID names (e.g. d2_test_8e50qzr4), the parse fails with CANNOT_PARSE_UUID.

Fix: use toUUIDOrNull instead and filter out NULL results.

Failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=101892&sha=633508e66d8356bbaa20a2af613a540aecbe96e9&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20parallel%29
#101892

Changelog category (leave one):

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

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.4.1.632

The test scans all entries under `/clickhouse/databases/` in ZooKeeper
and calls `toUUID` on each path suffix. When other parallel tests create
entries with non-UUID names, the parse fails with CANNOT_PARSE_UUID.

Use `toUUIDOrNull` instead and filter out NULL results.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=101892&sha=633508e66d8356bbaa20a2af613a540aecbe96e9&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20parallel%29

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@clickhouse-gh

clickhouse-gh Bot commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Apr 7, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member Author

@alexey-milovidov alexey-milovidov added this pull request to the merge queue Apr 8, 2026
@alexey-milovidov alexey-milovidov self-assigned this Apr 8, 2026
Merged via the queue into master with commit d1cd1e2 Apr 8, 2026
321 of 322 checks passed
@alexey-milovidov alexey-milovidov deleted the fix-02859-replicated-db-name-zookeeper branch April 8, 2026 02:16
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 8, 2026
Onyx2406 added a commit to Onyx2406/ClickHouse that referenced this pull request Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants