Repository navigation
Enable kill_throw_if_noop by default - #125968
Conversation
|
Workflow [PR], commit [a27c7f5] Summary: ✅
AI ReviewSummaryEnables Final Verdict✅ Approve. |
|
@Kryst4lskyxx thank you for your contribution! Could you please condense the PR description - it's too bloated now.
|
|
Thanks @arsenmuk, I have updated the description. |
The floating `26.8` image now resolves to `26.8.28` and rejects the unlisted S3 endpoints during setup. Pin both old-version instances so the tests create legacy metadata before upgrading to the current binary. CI failure: https://github.com/ClickHouse/ClickHouse/actions/runs/38699353562/job/116915226204?pr=125968 https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125968&sha=a8c4d46fceed74b9f8a8ff0dac46f72ba160f8a5&name_0=PR&name_1=Integration%20tests%20%28arm_binary%2C%203%2F4%29 Related: ClickHouse#125968
|
@Kryst4lskyxx don't worry about the failed build - it's not caused by your change. Once #126269 is merged, you'll just rebase and it'll be fine. Though could you please check the failed Style check, it's connected to the change. We need to update |
Add the current-version history record required by the style check and preserve the original `26.10` introduction with its disabled default. Update the SQL regression test to check the `26.10` to `26.11` compatibility boundary. Review: ClickHouse#125968 (comment) CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125968&sha=f7bf1134847ab6e9de8c537be532bdb0ff69bf9d&name_0=PR&name_1=Style%20check Related: ClickHouse#125968
Bring the merged build fix into the PR while preserving the existing branch history and the `26.11` compatibility record. Related: ClickHouse#126269 Related: ClickHouse#125968
8fcff8e to
520a648
Compare
Add the current-version history record required by the style check and preserve the original `26.10` introduction with its disabled default. Update the SQL regression test to check the `26.10` to `26.11` compatibility boundary. Review: ClickHouse#125968 (comment) CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125968&sha=f7bf1134847ab6e9de8c537be532bdb0ff69bf9d&name_0=PR&name_1=Style%20check Related: ClickHouse#125968
|
Thanks @arsenmuk, rebased and updated the settings history also. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units8 translation units recompiled, 19 s compile time in total, 6 of them have a recent master baseline. Translation units without a recent master baseline:
|
Report unmatched local `KILL QUERY` and `KILL MUTATION` statements instead of silently accepting them. Preserve the explicit opt-out and record the default change for `compatibility` with versions before 26.10. Update the registered documentation and add stateless regression coverage for the implicit default, opt-out, dry runs, and compatibility boundary. Closes: ClickHouse#123272
Add the current-version history record required by the style check and preserve the original `26.10` introduction with its disabled default. Update the SQL regression test to check the `26.10` to `26.11` compatibility boundary. Review: ClickHouse#125968 (comment) CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125968&sha=f7bf1134847ab6e9de8c537be532bdb0ff69bf9d&name_0=PR&name_1=Style%20check Related: ClickHouse#125968
520a648 to
a27c7f5
Compare
There was a problem hiding this comment.
@Kryst4lskyxx thank you for addressing the comments, it's all good now
Add the current-version history record required by the style check and preserve the original `26.10` introduction with its disabled default. Update the SQL regression test to check the `26.10` to `26.11` compatibility boundary. Review: ClickHouse#125968 (comment) CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125968&sha=f7bf1134847ab6e9de8c537be532bdb0ff69bf9d&name_0=PR&name_1=Style%20check Related: ClickHouse#125968
Head branch was pushed to by a user without write access
eef0eb2 to
a27c7f5
Compare
9a58b96
Since ClickHouse#123341, DROP WORKLOAD purges the dropped workload's queue: the running query's memory reservation fails with MEMORY_RESERVATION_FAILED ("Allocation queue is about to be destructed") at its next sync, which for sleepEachRow(1) with max_block_size 1 is the end of the current 1-second step. When that step ends between DROP WORKLOAD and KILL QUERY, the query is already gone and KILL matches nothing. That was a silent no-op until ClickHouse#125968 made kill_throw_if_noop default to true; now KILL writes NOTHING_TO_KILL to stderr and the test fails with "having stderror" (master 3eecd13, amd_asan_ubsan). The failing purge is the intended behavior (covered by the MemoryReservationDropWorkloadFailsRunningAllocation gtest), so the test now tolerates a no-op KILL with kill_throw_if_noop = false, the idiom of 03824 and 04726, and its comment states the current semantics. Other KILL errors still reach stderr, and the reservation is destroyed after the purge in both branches. Validated on the CI binaries of 3eecd13: amd_asan_ubsan unmodified 7/30 FAIL (all NOTHING_TO_KILL), fixed 50/50 OK with 17 runs in the drop-failed branch; amd_debug with sleep 1.5 injected between DROP and KILL: unmodified 10/10 FAIL, fixed 10/10 OK; plain fixed 50/50 OK. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Motivation
Local
KILL QUERYandKILL MUTATIONcan silently do nothing when aWHEREcondition is wrong. Report these mistakes by default.Changes
kill_throw_if_noopby default and keep the previous default withcompatibilitybelow26.11.KILLdocumentation.Closes: #123272
Related: #83348
Related: #85023
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
kill_throw_if_noopnow defaults totrue. Acompatibilitylevel below26.11keeps the previous default.Workflow [PR]
Sync PR [sync-upstream/pr/125968]
Version info
26.11.1.397-master(included in26.11and later)