Repository navigation
Do not run six TimeSeries tests with parallel replicas - #123763
alexey-milovidov merged 3 commits into
Conversation
`Stateless tests (arm_binary, ParallelReplicas, s3 storage, parallel)` runs on every PR since ClickHouse#122853, and five TimeSeries tests fail there on unrelated PRs (CIDB, that job, since 2026-09-29, 147 runs): 05213 51, 05218 26, 05237 10, 05059 6, 04838 4. Both failure classes are the open defects of the TimeSeries table functions on parallel replicas: - the argument of `timeSeriesSamples` / `timeSeriesMetricFamilies` is sent to the replicas as it was written, and a parallel-replica connection carries no default database, so a replica looks the table up in `default` (`UNKNOWN_TABLE`; 05213, 05218, 05237). With the default `parallel_replicas_local_plan = 1` this is a race, which is why it is intermittent; - no replica announces its parts to the coordinator, so every replica reads the whole inner table and each row of `timeSeriesTags` comes back once per replica (05059, 04838, which already pass the database explicitly). Same change as 0bc5beb made for 05057: the `no-parallel-replicas` tag plus one line naming the defect. The engine fix is ClickHouse#118518, which should drop these tags when it lands. Related: ClickHouse#118130 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (2 nits).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261003-212600 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-41:20261003-205100 |
|
Workflow [PR], commit [524cac1] Summary: ✅ AI ReviewSummaryThis PR adds Final Verdict✅ No new review findings. The existing bot-authored thread about |
It reads `timeSeriesTags({CLICKHOUSE_DATABASE:String}, 'ts')` after one insert and expects one row,
the same pattern as 05059 and 04838, so it hits the duplicated-rows defect of ClickHouse#118130. With
`enable_parallel_replicas = 1, max_parallel_replicas = 10` it failed 5/40 locally at the CI default
`parallel_replicas_local_plan = 1` (`1 m1` returned two or three times) and 5/5 at `local_plan = 0`.
With the tag: 40/40 skipped in the ParallelReplicas job, 40/40 OK with the same options outside it.
The other untagged TimeSeries table-function tests (04613, 04627, 04817, 04836, 04891, 05054, 05210,
05217, 05232 x2) were 20/20 OK in the same `local_plan = 1` run.
Related: ClickHouse#118130
Co-Authored-By: Claude Opus 5.5 <[email protected]>
CI finish ledger - e148090Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
This PR changes only six TimeSeries test files, and none of them failed anywhere it ran. All 157 checks completed and Session id: cron:our-pr-ci-monitor:20261004-013156 |
Merge upstream commit 756552d, including the `no-parallel-replicas` exclusion for `05218_timeseries_alp_codec`. Preserve the existing read-in-order fix and its regression test unchanged. Related: ClickHouse#123677 Related: ClickHouse#123763 CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=123677&sha=20d3846994236af48dd6c0d7de94c83ba66be82a&name_0=PR Co-authored-by: Copilot <[email protected]>
Related: #118130
Related: #101841 (comment)
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required: test-only change.
Description
Since #122853,
Stateless tests (arm_binary, ParallelReplicas, s3 storage, parallel)runs on every PR, and five TimeSeries tests fail there on unrelated PRs: #101841 (Table default.ts_new does not exist), #118272 (m1 j1returned three times). CIDB, that job, since 2026-09-29 (158 runs), PRs other than #122853:05213_timeseries_metric_families_target54,05218_timeseries_alp_codec26,05237_time_series_old_metric_family_name_inner_column11,05059_time_series_create_as_keeps_settings5,04838_timeseries_tags_column_contains_all_tags3.05182_time_series_id_type_settinghas not failed there yet, but it readstimeSeriesTagslike 05059 and fails 5/40 locally with that job's settings, so it is tagged too.Both causes are the defects of #118130, which is closed but still reproduces on master:
timeSeriesSamples/timeSeriesMetricFamiliesreaches the replicas unqualified, so a replica looks the table up indefault(05213, 05218, 05237). With the defaultparallel_replicas_local_plan = 1this is a race, hence intermittent.timeSeriesTags, so each row comes back once per replica (05059, 04838, 05182, which already pass the database explicitly).Change: the
no-parallel-replicastag plus one comment line per test, as 0bc5beb did for05057, which is skipped in all 158 runs of that job. #118518 is the engine fix and can drop these tags when it lands.Validation on a master debug build:
parallel_replicas_local_plan = 0andmax_parallel_replicas = 3, all six fail untagged and are skipped under--no-parallel-replicasonce tagged.enable_parallel_replicas = 0makes them pass with the same settings; without the tags they fail.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/123763]
Version info
26.10.1.1540-master(included in26.10and later)