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

kv: remove special-case in FilterUnremovableReplicas for recently-added replicas #84160

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nvanbenschoten
Copy link
Member

In #17879/#17930, a special case was added to FilterUnremovableReplicas
to avoid a common interaction where a newly-added replica was immediately
removed when a range followed a replica addition with a replica removal.
This special case was later refined in #34126.

This was important at the time, but it is no longer necessary because replica
rebalancing (replica addition + removal) is performed atomically through a
joint configuration. As a result, we can get rid of the subtle logic
surrounding this special case.

…ed replicas

In cockroachdb#17879/cockroachdb#17930, a special case was added to `FilterUnremovableReplicas`
to avoid a common interaction where a newly-added replica was immediately
removed when a range followed a replica addition with a replica removal.
This special case was later refined in cockroachdb#34126.

This was important at the time, but it no longer necessary because replica
rebalancing (replica addition + removal) is performed atomically through a
joint configuration. As a result, we can get rid of the subtle logic
surrounding this special-case.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants