Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistent parts after clone replica #6523

Merged
merged 3 commits into from Aug 19, 2019

Conversation

tavplubix
Copy link
Member

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

For changelog. Remove if this is non-significant change.

Category (leave one):

  • Bug Fix

Short description (up to few sentences):
Fixes #6522

@tavplubix tavplubix added the pr-bugfix Pull request with bugfix, not backported by default label Aug 16, 2019
@tavplubix tavplubix changed the title [WIP] Fix inconsistent parts after clone replica Fix inconsistent parts after clone replica Aug 19, 2019
@alexey-milovidov alexey-milovidov merged commit 3a909c5 into master Aug 19, 2019
LOG_WARNING(log, "Source replica does not have part " << part << ". Removing it from ZooKeeper.");
}
}
tryRemovePartsFromZooKeeperWithRetries(parts_to_remove_from_zk);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. But all usages of this function look suspicious because result is not checked.

@alexey-milovidov
Copy link
Member

Also one thought: why don't we clone queue and parts from source replica, totally replacing our queue and parts? Maybe because it's more difficult to do atomically?

tavplubix pushed a commit that referenced this pull request Aug 20, 2019
…ne_replica

Fix inconsistent parts after clone replica
tavplubix pushed a commit that referenced this pull request Aug 20, 2019
…ne_replica

Fix inconsistent parts after clone replica
@tavplubix tavplubix deleted the fix_inconsistent_parts_after_clone_replica branch August 20, 2019 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent parts after DROP PARTITION and outdated replica restore
2 participants