Skip to content

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 into
backport/26.6/108350from
cherrypick/26.6/108350
Jun 28, 2026
Merged

robot-ch-test-poll4 merged 4 commits into
backport/26.6/108350from
cherrypick/26.6/108350

Conversation

@robot-ch-test-poll4

Copy link
Copy Markdown
Contributor

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-pick locally.
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:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

groeneai and others added 4 commits June 24, 2026 04:18
…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
@robot-ch-test-poll4 robot-ch-test-poll4 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request labels Jun 28, 2026
@robot-ch-test-poll4
robot-ch-test-poll4 merged commit cbdeed6 into backport/26.6/108350 Jun 28, 2026
@robot-ch-test-poll4
robot-ch-test-poll4 deleted the cherrypick/26.6/108350 branch June 28, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants