Repository navigation
Cherry pick #108350 to 26.6: Fix flaky test_s3_plain_rewritable: opt in to legacy REPLACE PARTITION from empty source - #108751
Merged
robot-ch-test-poll4 merged 4 commits intoJun 28, 2026
Conversation
…N from empty source When a node's random row count (random.randint(1, MAX_ROWS)) is 1, only id=0 exists, so partition 1 of `test` is empty. After MOVE PARTITION 0 TO test_dst, `test` is empty and REPLACE PARTITION 1 FROM test reads an empty source partition. #23727 (PR #104939) made REPLACE PARTITION from an empty source partition throw BAD_ARGUMENTS by default, gated by allow_replace_partition_from_empty_source. That PR updated the affected stateless tests but missed this integration test, which then failed intermittently (~0.05% of master runs across asan/tsan/msan once #104939 merged). Pin allow_replace_partition_from_empty_source=1 on the REPLACE query to restore the legacy no-op semantics the test relies on, matching the fix applied to the stateless tests in #104939. The destination partition 1 is also empty here, so no data is lost. Co-Authored-By: Claude Opus 4.8 <[email protected]>
… keep #23727 as original issue Per review on PR #108350: #104939 (the fix for #23727) introduced the empty-source REPLACE PARTITION throw-by-default; reference it so future readers find the actual behavior change. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…able-replace-empty-partition Fix flaky test_s3_plain_rewritable: opt in to legacy REPLACE PARTITION from empty source
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 #108350
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.
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