Repository navigation
Fix flaky test 02859_replicated_db_name_zookeeper - #101952
Conversation
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) <[email protected]>
|
Workflow [PR], commit [daa8240] Summary: ✅ AI ReviewSummaryThis PR fixes a flaky stateless test by replacing ClickHouse Rules
Final Verdict
|
Root cause analysisThe test scans all children of The specific entry CREATE DATABASE d2_$CLICKHOUSE_DATABASE ENGINE = Replicated('/clickhouse/databases/d2_$CLICKHOUSE_DATABASE', 's0', 'd0');Three other tests also create non-UUID entries directly under
These are all legitimate uses — the Replicated database engine does not require UUID-based paths. The fix is to use |
…lickHouse#101994, ClickHouse#102158, ClickHouse#101952, ClickHouse#102148, ClickHouse#102008, ClickHouse#102010) # Conflicts: # src/Common/AsynchronousMetrics.cpp
…lickHouse#101994, ClickHouse#102158, ClickHouse#101952, ClickHouse#102148, ClickHouse#102008, ClickHouse#102010) # Conflicts: # src/Formats/FormatSettings.h
The test scans all entries under
/clickhouse/databases/in ZooKeeper and callstoUUIDon each path suffix. When other parallel tests create entries with non-UUID names (e.g.d2_test_8e50qzr4), the parse fails withCANNOT_PARSE_UUID.Fix: use
toUUIDOrNullinstead 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):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
Version info
26.4.1.632