Repository navigation
Revert the PromQL topk/limitk streaming plan and its shared-subquery materialization - #114326
Conversation
This reverts pull request #113772 (merge commit b9d4064). Stress tests on `master` started reporting `Hung check failed, possible deadlock found` on the first commit after this one, and have not stopped since. The stuck query is `DROP TABLE prometheus` blocked in `StorageTimeSeries::dropInnerTableIfAny` -> `DatabaseCatalog::waitTableFinallyDropped`, in the PromQL `limitk` test whose vector-grid subquery this change turned into a `SQLSubqueryType::MATERIALIZED_TABLE`. Related: #113772 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
… plan" This reverts pull request #113656 (merge commit bf4fa22). Reverted together with #113772, which built on the plan this change introduced: the two touch the same function, so reverting only the newer one would leave the older half of the feature in place. Related: #113656 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Workflow [PR], commit [fa31690] Summary: ❌
AI ReviewSummaryThis PR cleanly reverts the short-lived PromQL Final Verdict✅ No actionable findings. LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 169/173 (97.69%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
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. Object file sizes9 object files changed (+19.59 KiB total), 0 added.
739 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units61 translation units recompiled, 189 s compile time in total, 61 of them have a recent master baseline. Median compile-time ratio to the baselines is ×1.35 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
Reverts the PromQL
topk/bottomk/limitkstreaming plan and the shared-subquery materialization built on top of it, because they deadlockDROP TABLEon aTimeSeriestable and have kept the stress tests red onmastersince 2026-08-10.The stuck query is
DROP TABLE prometheus, blocked for 849 seconds inStorageTimeSeries::dropInnerTableIfAny->InterpreterDropQuery->DatabaseCatalog::waitTableFinallyDropped, withDROP DATABASE ... SYNCandDETACH DATABASEqueued behind itsDDLGuard. The stress database is the one created by04811_promql_topk_bottomk_limitk, whose vector-grid subquery #113772 turned into aSQLSubqueryType::MATERIALIZED_TABLE.CI history puts the onset between two commits. Twenty-three consecutive stress-tested
mastercommits are clean throughb9d4064cb88(#113772, merged 2026-08-10 07:02 UTC); the next first-parent commit,5e52a0f269f(#114061, which only deletes tests), fails at 08:18 UTC, and the failure has not stopped since - 51 occurrences over 28 commits on 2026-08-10 against a baseline of 1 to 5 per day, across every stress configuration.Hung check failed, possible deadlock foundonmaster, by day:#113656 is reverted together with #113772 rather than left in place: #113772 edits the body of
applyLimitAggregationOperator, the function #113656 introduced, so reverting only the newer one leaves half of the feature behind and reverting only the older one does not apply. The two reverts are in one pull request, newest first, so that neither commit stands alone onmaster.Related: #113772
Related: #113656
Both changes were merged after the last release and never shipped, so no changelog entry is needed. The reverted work should be reintroduced once the
TimeSeriesinner-table drop no longer waits on a reference held by the materialized subquery.Changelog category (leave one):
Version info
26.8.1.1199(included in26.8and later)