Skip to content

Fix an unkillable hang when dropping a low-sorting-name TimeSeries table - #114953

Merged
PedroTadim merged 2 commits into
ClickHouse:masterfrom
groeneai:fix-timeseries-drop-ddl-guard-self-deadlock
Aug 21, 2026
Merged

PedroTadim merged 2 commits into
ClickHouse:masterfrom
groeneai:fix-timeseries-drop-ddl-guard-self-deadlock

Conversation

@groeneai

@groeneai groeneai commented Aug 15, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #114259

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

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

Fixed a hang when dropping a TimeSeries table whose name sorts lexicographically below its inner tables' names, for example DROP TABLE `-ts` or dropping a materialized view declared with ENGINE = TimeSeries. The drop self-deadlocked on the DDL guard and could not be cancelled with KILL QUERY.

Description

DROP TABLE of a TimeSeries table never returned and could not be killed when the table's own
qualified name sorted below its inner tables' names:

SET allow_experimental_time_series_table = 1;
CREATE TABLE `-ts` ENGINE = TimeSeries;
DROP TABLE `-ts`;                                       -- hung forever

A materialized view's inner name is .inner_id.<uuid>, which always sorts below
.inner_id.metrics.<uuid>, so dropping an MV ... ENGINE = TimeSeries hung too.

Root cause. executeDropQuery takes the DDL guard for the inner table, then synthesizes an
ASTDropQuery for that same table without setting no_ddl_lock, so the nested interpreter takes
the guard for the identical name again. DDLGuard::table_lock wraps a non-recursive std::mutex,
so the thread deadlocks against itself. A mutex wait is not a cancellation point, so KILL QUERY
could not land and the guard stayed held for the server's lifetime.

need_ddl_guard = true comes from one call site, StorageTimeSeries::dropInnerTableIfAny, which
requests the inner guard only when the parent name sorts first. That predicate is correct and is
kept: guards must be taken in increasing name order. Only its comment was wrong, claiming the
inner name is "almost always less", which holds for MaterializedView but not TimeSeries.

The change. executeDropQuery now sets no_ddl_lock = need_ddl_guard, so the inner name is
guarded exactly once, by the caller, across the nested execute. InterpreterCreateQuery sets the
same field for the same reason. The fix is inert for the other ten call sites, which all take the
need_ddl_guard = false default. The ddl_guard null check is pre-existing hardening.

Validation. Both shapes time out before the fix and succeed after, while a high-sorting-name
control passes on both builds. Eight concurrent drops serialize and complete and the name is
reusable afterwards, so the guard is still taken and released. New test 04920 covers both shapes
and asserts no inner table is left behind.

Version info

  • Merged into: 26.8.1.1839 (included in 26.8 and later)
  • Backported to: 26.7.6.7, 26.6.4.12, 26.5.8.20, 26.3.22.8

groeneai and others added 2 commits August 15, 2026 08:37
DROP TABLE of a TimeSeries table hung forever, and could not be cancelled
with KILL QUERY, whenever the table's own qualified name sorted below its
inner tables' names:

    SET allow_experimental_time_series_table = 1;
    CREATE TABLE `-ts` ENGINE = TimeSeries;
    DROP TABLE `-ts`;

No unusual name is needed to reach it. A materialized view's inner name is
.inner_id.<uuid>, which always sorts below .inner_id.metrics.<uuid>, so
dropping a view declared with ENGINE = TimeSeries hung as well.

InterpreterDropQuery::executeDropQuery did not honour its own
need_ddl_guard contract. It takes the DDL guard for the inner table, then
synthesizes an ASTDropQuery for that same table without setting
no_ddl_lock, so the nested InterpreterDropQuery takes the guard for the
identical name a second time. DDLGuard::table_lock is a unique_lock over a
non-recursive std::mutex, so the thread deadlocks against itself. A mutex
wait is not a cancellation point, which is why KILL QUERY could not land
and the guard for that name stayed held for the server's lifetime.

need_ddl_guard = true reaches that code from a single call site,
StorageTimeSeries::dropInnerTableIfAny, which requests the inner guard only
when the parent name sorts first. That predicate is correct and is kept,
since DDL guards must be taken in increasing name order and the outer DROP
already holds the parent's guard. Only its comment was wrong: it claimed
the inner name is almost always less than the parent's, which holds for
MaterializedView but not for TimeSeries, where it is almost always false.

Set no_ddl_lock on the synthesized AST so the inner name is guarded exactly
once, by the caller, held across the nested execute. InterpreterCreateQuery
already sets the same field for the same reason. The other ten call sites
take the need_ddl_guard = false default, so the change is inert for them.

The null check on ddl_guard in executeToTableImpl is defensive hardening
rather than part of the fix. That shouldReplicateQuery branch is not
reachable from the TimeSeries paths, because executeDropQuery sets
is_replicated_database_internal only when a metadata transaction is
present, and it is already reachable today from InterpreterCreateQuery. It
is guarded because this change routes a second caller through the line.

Validated against a pristine master build: both shapes above time out
before the change and succeed after it, while a high-sorting-name control
passes on both builds. Across a seven-name matrix, every name sorting below
its inner tables hangs before and passes after, and every name sorting
above passes on both. Eight concurrent drops of one table serialize and
complete, and the name is re-creatable afterwards, so no lock is stranded.
…asttest

The stress runner passes ignore_drop_queries_probability=0.2. A TimeSeries
table does not override storesDataOnDisk, so InterpreterDropQuery rewrites
such a DROP into a TRUNCATE, and TRUNCATE never calls dropInnerTableIfAny.
The test then observes nothing. Forcing the setting to 1 leaves 13 inner
tables behind without the pin and 0 with it.

The no-fasttest tag claimed the TimeSeries engine is absent from the
fast-test image. registerStorageTimeSeries is called unconditionally in
registerStorages.cpp, and the untagged 03222_create_timeseries_table has
run in Fast test 3898 times over the last 7 days, so the claim was wrong
and the tag needlessly removed the test from the fastest job.

No no-replicated-database tag: the test was measured 10 times in that mode
and passes, while the same runs against the pre-fix binary hang in
DatabaseReplicated::dropTable, so that config covers a real carrier.

The comment above may_lock_ddl_guard now states the lock-ordering rule
without asserting that a parent guard is always held, which is false on the
background dropTableFinally path.

Co-Authored-By: Claude Fable 5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review (2 rounds, 6 findings adjudicated)

Before opening this PR I reviewed the change myself and had a second model review it
independently, twice: once on the first tree and again on the revised one. Verdicts and the
evidence behind them are below, including the ones I disagreed with.

❌ Blockers

Finding Verdict Evidence
The high-sorting-name branch still takes DDL guards in descending order and can deadlock against multi-name DDL Disagreed The hazard is real in general, but it needs the high-sorting branch to behave differently after this change. On that branch need_ddl_guard is false, so the new line assigns no_ddl_lock = false, which is byte-identical to the ASTDropQuery default the code already had (it never touched the field before). This change only ever removes a lock acquisition, so it cannot create a descending-order acquisition that did not already exist. The residual ordering hazard is documented and accepted on trunk in StorageMaterializedView.cpp:552-560. Not re-raised on the second round, which re-reviewed the full diff.

⚠️ Majors

Finding Verdict Action
The test does not disable ignore_drop_queries_probability, so a stress run can rewrite the target DROP into a TRUNCATE and skip the regression path Agreed Fixed. The test now pins the setting to 0. I verified the line is load-bearing rather than decorative with a negative control at the setting's worst case (=1, harder than the stress runner's 0.2): as committed the leak oracle prints 0, and with that single SET deleted it prints 13 surviving inner tables. I did not accept the finding's claim that this reddens CI, because the Stress job validates no per-test stateless results; the real cost is silent loss of coverage.
The no-fasttest exclusion is unjustified because the TimeSeries engine is available in fast-test builds Agreed Fixed, and the stated justification was simply false: registerStorageTimeSeries is called unconditionally at registerStorages.cpp:144, with no build guard, unlike the optional engines beside it. The untagged 03222_create_timeseries_table, which creates a TimeSeries table, ran in Fast test several thousand times in the last week. The tag and its false comment are gone.
The test does not prove the inner-table DDL guard stays continuously held Disagreed That is not this PR's contract, and it is not observable: no system table or failpoint exposes DDL guard acquisition, so such an assertion would be a wall-clock race and flaky by construction. The property is evidenced instead by measurement: eight concurrent drops of the same table all complete and the name is reusable afterwards, so the guard is taken and released. Not re-raised on the second round.

💡 Nits

Finding Verdict Action
The comment claimed the parent DDL guard is always held (StorageTimeSeries.cpp) Agreed Fixed. StorageTimeSeries::drop() reaches this from the background dropTableFinally task, which holds no DDL guard, so the claim was wrong. The comment now states only the ordering rule.
The comment in executeDropQuery reads as if the guard were unconditionally held Agreed, noted, not fixed here Accurate: the guard is created conditionally at InterpreterDropQuery.cpp:876 and the sentence above no_ddl_lock = need_ddl_guard does not say so, which is untrue for the ten call sites that take the false default. The assignment itself is correct in both branches, so there is no behavioural defect and nothing a test could observe. Better wording for whoever next touches the line: "when the caller took this non-recursive guard, the nested interpreter must not take it again".
Coverage under --replicated-database was unverified Agreed Measured rather than guessed. The test passes 10/10 in that mode against a two-replica setup using the CI profile. I deliberately did not copy the no-replicated-database tag its siblings carry: against the pre-fix binary the same run hangs, with the deadlock reached through DatabaseReplicated::dropTable, so that config is the only one covering a second real carrier of this bug and tagging it out would delete that coverage.

I also found one carrier the first round missed and closed it by reading rather than by assumption:
with no_ddl_lock = true the guard is null at InterpreterDropQuery.cpp:274, where it is moved
into tryEnqueueReplicatedDDL. It is only stored to extend a lifetime, never dereferenced, in all
four files along that chain, and that branch is unreachable from the TimeSeries call sites
anyway.

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. CREATE TABLE \-ts` ENGINE=TimeSeries; DROP TABLE `-ts`` returns rc=124 (timeout) on every run of the pristine master snapshot binary. No failpoint, no stress infra, single process, default settings.
b Root cause explained? Yes. executeDropQuery takes the DDL guard for the inner table, then synthesizes an ASTDropQuery for that same table without setting no_ddl_lock, so the nested InterpreterDropQuery re-locks the identical name. DDLGuard::table_lock wraps a non-recursive std::mutex, so the thread deadlocks against itself; a mutex wait is not a cancellation point, hence KILL QUERY cannot land.
c Fix matches root cause? Yes. The nested interpreter is told the guard is already held. No timeout change, no widened bound, no no-random-* tag, no recursive-mutex change, no guard at the deadlock site.
d Test intent preserved / new tests added? No existing test weakened. New 04920_timeseries_drop_low_sorting_name covers both reachable shapes plus a leftover-inner-table assertion, and that assertion is proven non-vacuous in both directions (it prints 1 when a table is deliberately left behind; the pre-fix arm dies at the first DROP with 0 bytes of stdout, so a hang cannot pass it by skipping it).
e Both directions demonstrated? Yes. Base (pristine snapshot, build id d110f21c...): both shapes rc=124. Fix (build id 182812cb..., readelf == SELECT buildId() == live server): both rc=0. A high-sorting-name control passes on both arms, so rc=124 is the defect and not a broken harness.
f Fix is general across code paths? Yes. All 11 external executeDropQuery call sites enumerated, each multi-line call read for a 7th argument. Only StorageTimeSeries.cpp:284 passes a non-default need_ddl_guard; StorageMaterializedView.cpp:564 passes explicit false; the other nine take the = false default (InterpreterDropQuery.h:28). For all of them no_ddl_lock becomes false, i.e. today's behaviour byte for byte. Fixed at the source inside executeDropQuery, not guarded at the deadlock site.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes. Seven-name matrix run on both arms: every name sorting below its inner tables (-ts, !x) hangs on base and passes on fix; every name sorting above (.ts, 0ts, A, zzz, _u) passes on both, all with 0 leftover tables. Also covered: SYNC and non-SYNC forms and the TRUNCATE sibling path. Type wrappers are N/A, no column types are involved in this path.
h Backward compatible? (maintainer-approved exception only) Yes. No setting, no serialization or format change, so no SettingsChangesHistory.cpp entry is needed; no experimental-gate change (the engine is already behind allow_experimental_time_series_table). The only behaviour change is hang to completes.
i Invariants and contracts preserved? Yes. The ascending name-order lock discipline is kept: the ordering predicate is unchanged, and the inner name is now guarded exactly once by the caller across the nested execute. Measured that the guard is still taken and still released: 8 concurrent drops of one table serialize and complete (4 objects to 0, no hang), and the name is re-creatable afterwards, so no lock is stranded. Both guards are RAII locals released on every exit including error and early-return paths.

Session id: cron:clickhouse-impl-self-slot-57:20260815-071000

@clickhouse-gh

clickhouse-gh Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [fcf6b92]

Summary: ❌

job_name test_name status info comment
Stress test (amd_tsan) FAIL
Logical error: Sizes of nested column and null map of Nullable column are not equal after deserialization (null map size = A, nested column size = B) (STID: 6726-4d8b) FAIL cidb IGNORED

AI Review

Summary

This PR fixes the TimeSeries inner-drop self-deadlock by propagating no_ddl_lock when executeDropQuery already holds the inner table's DDLGuard, and the code path itself looks coherent. However, the merge-blocking Bugfix validation gate never exercised the new stateless regression test, so the PR still lacks automated before/after evidence for its Bug Fix claim.

Tests
  • ⚠️ tests/queries/0_stateless/04920_timeseries_drop_low_sorting_name.sql is not currently validated by any per-arch Bugfix validation job. The Finish Workflow report failed with No per-arch Bugfix Validation job validated the bug, and the functional validation reports are empty. Please make the bugfix validator select and run this test, or otherwise add automated master-vs-PR proof that the bug reproduces before the fix and passes after it.
Final Verdict

⚠️ Request changes
The code change itself looks reasonable, but the regression-evidence gate is still unsatisfied.

LLVM Coverage Report

Metric Baseline Current Δ
Lines 86.70% 86.90% +0.20%
Functions 92.00% 92.00% +0.00%
Branches 79.20% 79.30% +0.10%

Changed lines: Changed C/C++ lines covered: 15/15 (100.00%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Aug 15, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @nikitamikhaylov @evillique, could you review this? executeDropQuery takes the DDL guard for an inner table and then synthesizes an ASTDropQuery for that same table without setting no_ddl_lock, so the nested interpreter re-locks a non-recursive mutex and the thread deadlocks against itself; the only caller that requests that guard is StorageTimeSeries::dropInnerTableIfAny, so a DROP of a TimeSeries whose name sorts below its inner tables hangs unkillably.

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Aug 15, 2026

-- A TimeSeries whose own name sorts below its inner tables' names used to self-deadlock on the
-- DDL guard, so this hung instead of returning.
DROP TABLE IF EXISTS `-ts`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This regression test still doesn't provide mergeable bugfix evidence, because the Bugfix validation gate never exercised it: all per-arch validation reports for this PR were empty, and Finish Workflow failed with No per-arch Bugfix Validation job validated the bug.

The green stateless matrix only proves the test passes after the change. For a Bug Fix PR we still need one automated before/after path that reproduces on master and passes on the PR. Please fix the bugfix-validation plumbing for this test (or otherwise add equivalent automated proof) before merging.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The empty reports are the can be tested label gate, not this test's plumbing.

Config Workflow failed can_be_tested on workflow attempts 1 and 2, so all five Bugfix validation jobs were skipped before they could run, and new_tests_check.py then correctly reported that no arch had validated. The can be tested label was applied at 22:30:23Z and attempt 3 started 3 seconds later; its Config Workflow passed at 22:31:54Z. This comment at 23:20Z reads the attempt-2 report.

In the current run Bugfix validation (functional tests, amd64) and (aarch64) are PENDING, not skipped; only the integration arms are skipped, with the correct reason Skipped, no integration tests updates. I will let them finish and report the outcome rather than predicting it.

No change to the test: 04920 reproduces by hanging on the pre-fix binary, so weakening it to satisfy a gate that was never reached would remove the evidence you are asking for.

@clickhouse-gh

clickhouse-gh Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing fcf6b92cb with master 83564faa3 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes
Binary Master PR Δ
programs/clickhouse-stripped 693.26 MiB 690.24 MiB -3.02 MiB (-0.44%)

Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction.

Compile time of recompiled translation units

7 translation units recompiled, 18 s compile time in total, 7 of them have a recent master baseline.

Job report

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger — fcf6b92

Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Stress test (amd_tsan) / Sizes of nested column and null map of Nullable column are not equal after deserialization (STID 6726-4d8b) chronic trunk skip-index deserialization bug, not PR-caused (this PR's diff is a TimeSeries DDL-guard fix and touches no serialization path) #106988 (ours, open)
Config Workflow / Pre Hooks · Finish Workflow / Post Hooks stale rows from workflow attempts 1-2, when the can be tested label gate dropped the matrix; both are green on attempt 3 superseded on this head - both aggregators concluded success

On the Stress row: the stack is SerializationNullable::deserializeBinaryBulkWithMultipleStreams <- MergeTreeIndexBulkGranulesSet::deserializeBinary <- MergeTreeIndexReader::read <- filterMarksUsingIndex, i.e. the set-skip-index read path that #106988 re-arms. Breadth over 30 days on this signature is 410 rows across 268 distinct PRs with 27 true-master hits, first seen 2026-07-22. The other merged skip-index PR in this family, #112484, is scoped to minmax/text index type staleness and does not cover this path, so I am not linking it.

Follow-up promised in the bot thread: the Bugfix validation arms did complete on this head and both passed - functional tests amd64 success, aarch64 success, unit tests success, integration arms correctly skipped (no integration tests updates). Finish Workflow is green, so the No per-arch Bugfix Validation job validated the bug message is gone.

Session id: cron:our-pr-ci-monitor:20260816-050000

@PedroTadim

Copy link
Copy Markdown
Member

cc @vitlibar

@PedroTadim
PedroTadim enabled auto-merge August 21, 2026 09:15
@PedroTadim
PedroTadim added this pull request to the merge queue Aug 21, 2026
Merged via the queue into ClickHouse:master with commit 941dd98 Aug 21, 2026
531 of 539 checks passed
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 21, 2026
@clickgapai

Copy link
Copy Markdown
Contributor
Reproducer
SET allow_experimental_time_series_table = 1;
CREATE TABLE `-ts` ENGINE = TimeSeries;
DROP TABLE `-ts`;   -- hangs forever; KILL QUERY cannot land

-- control: a name sorting above `.inner_id.*` returns normally
CREATE TABLE prom ENGINE = TimeSeries;
DROP TABLE prom;

Results:

  • Reproduces on: 26.7, 26.6, 26.5, 26.3, 25.8
  • Does not reproduce on: master
  • Tested versions: master, 26.7, 26.6, 26.5, 26.3, 25.8
  • Also tested (unsupported, context only): 26.2 reproduces, 24.12 reproduces, 24.10 reproduces, 24.9 reproduces, 24.8 reproduces, 24.7 unknown, 24.6 unknown
  • ✓ Fix is on master — this PR's change fixes the bug on master. The releases listed above still have the bug and need the backport.

Backport the fix to 26.7, 26.6, 26.5, 26.3, 25.8.

CC component owner: @vitlibar @alexey-milovidov

Analysis metadata

comp-promql · Severity P2 · Finding phase_d_pr114953

  • Verified against master build d8bf9a01b85b (aarch64)
Introducing change: not identified
  • No clean release baseline found and no lower bound established — source-build bisect is required to pin the introducing PR (not yet performed).
  • Walked 6 release(s) below the supported window: still reproduces down to 25.2.

@groeneai

Copy link
Copy Markdown
Collaborator Author

I verified the backport ask independently before relaying it. All five branches are affected and the fix is live on all five, so the request is correct.

Measured with the official per-branch binaries (builds.clickhouse.com/<X.Y>/amd64/clickhouse), treatment DROP TABLE \-ts`against controlDROP TABLE prom`:

binary -ts prom (control)
master 26.8.1.1867 returns returns
26.7.6.4 hangs returns
26.6.4.10 hangs returns
26.5.8.13 hangs returns
26.3.21.10 hangs returns
25.8.33.3 hangs returns

The control returns on every binary, so the hangs are the defect and not a broken probe. The master binary's GIT_HASH has this PR's merge commit as an ancestor.

One label is enough: v25.8-must-backport. Computed with select_backport_branches against the currently active release branches: a version specific label marks the oldest release and pulls the fix into every newer active branch, so it expands to exactly 26.7, 26.6, 26.5, 26.3, 25.8. Five separate labels are not needed.

Merge forecast, simulated in the shape create_cherrypick uses (merge base 941dd98b^1): 26.7 and 26.6 apply cleanly, so the robot opens those backport PRs directly. 26.5, 26.3 and 25.8 conflict in src/Storages/StorageTimeSeries.cpp and will need the intermediate cherry pick PR. That conflict is comment only in substance: those branches predate the tryGetTargetTableID refactor, and the only functional line, bool may_lock_ddl_guard = getStorageID().getQualifiedName() < <inner>.getQualifiedName();, is identical modulo the variable name, so the resolution is to keep the branch's loop and take the new comment. src/Interpreters/InterpreterDropQuery.cpp, where the fix actually lives, auto merges on all five, and the no_ddl_lock read site it depends on already exists on every branch.

@alexey-milovidov could you apply v25.8-must-backport here? I do not hand author release branch PRs.

@evillique evillique added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Aug 21, 2026
@robot-clickhouse robot-clickhouse added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Aug 21, 2026
clickhouse-gh Bot pushed a commit that referenced this pull request Aug 21, 2026
clickhouse-gh Bot added a commit that referenced this pull request Aug 21, 2026
Backport #114953 to 26.6: Fix an unkillable hang when dropping a low-sorting-name TimeSeries table
clickhouse-gh Bot pushed a commit that referenced this pull request Aug 21, 2026
clickhouse-gh Bot added a commit that referenced this pull request Aug 21, 2026
Backport #114953 to 26.7: Fix an unkillable hang when dropping a low-sorting-name TimeSeries table
PedroTadim added a commit that referenced this pull request Aug 24, 2026
Cherry pick #114953 to 26.5: Fix an unkillable hang when dropping a low-sorting-name TimeSeries table
PedroTadim added a commit that referenced this pull request Aug 24, 2026
Cherry pick #114953 to 26.3: Fix an unkillable hang when dropping a low-sorting-name TimeSeries table
PedroTadim added a commit that referenced this pull request Aug 24, 2026
Cherry pick #114953 to 25.8: Fix an unkillable hang when dropping a low-sorting-name TimeSeries table
robot-clickhouse added a commit that referenced this pull request Aug 24, 2026
robot-clickhouse added a commit that referenced this pull request Aug 24, 2026
robot-clickhouse added a commit that referenced this pull request Aug 24, 2026
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Aug 24, 2026
PedroTadim added a commit that referenced this pull request Aug 25, 2026
Backport #114953 to 26.3: Fix an unkillable hang when dropping a low-sorting-name TimeSeries table
PedroTadim added a commit that referenced this pull request Aug 25, 2026
Backport #114953 to 26.5: Fix an unkillable hang when dropping a low-sorting-name TimeSeries table
bytehalo-infra added a commit to sentioxyz/ClickHouse that referenced this pull request Sep 25, 2026
OTHER: DROP of a TimeSeries table whose name sorts below its inner tables -> hang (deadlock).
Effect in the production build a394e92: wrong/failing (the upstream test fails on it and passes on official 26.8.8.8; evidence/fix_ci_20260925/upstream_repro/residual/114953.PROD263.txt).
Upstream patch unchanged, with its test(s): 04920_timeseries_drop_low_sorting_name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-promql PromQL / time-series subsystem: TimeSeries storage engine, PromQL parser, PromQL-to-SQL converter... groeneai-origin-follow-up PR origin: groeneai's own out-of-scope finding during its PR work pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR 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.

8 participants