Skip to content

Cherry pick #107652 to 26.3: Do not deduplicate restored ReplicatedMergeTree parts - #108637

Merged
robot-ch-test-poll3 merged 8 commits into
backport/26.3/107652from
cherrypick/26.3/107652
Jun 26, 2026
Merged

robot-ch-test-poll3 merged 8 commits into
backport/26.3/107652from
cherrypick/26.3/107652

Conversation

@robot-ch-test-poll3

Copy link
Copy Markdown
Contributor

Original pull-request #107652

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

pamarcos and others added 8 commits June 16, 2026 17:40
`RESTORE` attaches restored parts through the same existing-part sink path as `ATTACH`.
That path applies insert deduplication, so duplicate-content parts from a backup can
be silently dropped during restore.
Keep the default behavior for `ATTACH`, but disable part deduplication for restored
parts. Add a deterministic backup/restore regression test for duplicate parts.
Use a single expected aggregate from `node1` instead of comparing restored data
against each replica's local source table. This avoids depending on whether the
source table has already replicated to `node2` while still checking restored data
on both replicas.
Drop `tbl` and `tbl2` on `cluster` from the regression test itself.
The module fixture only cleans `cluster3`, so the test must clean objects it
creates on `cluster` to avoid leaking stopped-merge state or table names into
later tests.
Do not deduplicate restored ReplicatedMergeTree parts
@robot-ch-test-poll3 robot-ch-test-poll3 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 pr-bugfix Pull request with bugfix, not backported by default labels Jun 26, 2026
@robot-ch-test-poll3
robot-ch-test-poll3 merged commit 532fb61 into backport/26.3/107652 Jun 26, 2026
@robot-ch-test-poll3
robot-ch-test-poll3 deleted the cherrypick/26.3/107652 branch June 26, 2026 17:50
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-bugfix Pull request with bugfix, not backported by default 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.

3 participants