Repository navigation
Cherry pick #127158 to 26.10: Fix flaky test 05239_workload_drop_memory_reservation_in_use - #127458
Merged
robot-clickhouse-ci-2 merged 3 commits intoOct 22, 2026
Merged
Conversation
Since #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 #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]>
…p-kill-noop Fix flaky test `05239_workload_drop_memory_reservation_in_use`
Contributor
|
The |
robot-clickhouse
force-pushed
the
backport/26.10/127158
branch
from
October 22, 2026 20:48
801478f to
b6f82f4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original pull-request #127158
Do not merge this PR manually
This pull-request is a first step of an automated backporting.
It contains changes similar to calling
git cherry-picklocally.If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.
The check results does not matter at this step - you can safely ignore them.
Before you resolve anything
Conflicts are often caused by a prerequisite change that has not been backported yet, rather than by a real divergence. The bot re-tries this cherry-pick against the release branch on every run, so if that is the case here it will merge itself as soon as the prerequisite lands, and you will see a comment saying so. Manual resolution is only needed while the conflict persists.
Troubleshooting
If the conflicts were resolved in a wrong way
If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:
pr-cherrypicklabel from the PRYou also need to check the Original pull-request for
pr-backports-createdlabel, and delete if it's presented thereThe PR source
The PR is created in the CI job