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

kvserver: improve handling for removal of a replica, when multiple replicas already exist on the same node #60546

Merged
merged 1 commit into from
Feb 16, 2021

Commits on Feb 16, 2021

  1. kvserver: improve handling for removal of a replica, when multiple re…

    …plicas already exist on the same node
    
    Fixes cockroachdb#60545
    
    The allocator in some cases allows for a range to have a replica
    on multiple stores of the same node. If that happens, it should allow
    itself to fix the situation by removing one of the offending replicas.
    This was only half working due to an ordering problem in how the replicas
    appeared in the descriptor. It could remove the first replica, but not the second one.
    
    Release note (bug fix): 20.2 introduced an ability to rebalance replicas
    between multiple stores on the same node. This change fixed a problem
    with that feature, where ocassionaly an intra-node rebalance would
    fail and a range would get stuck permanently under replicated.
    lunevalex committed Feb 16, 2021
    Configuration menu
    Copy the full SHA
    306d2e9 View commit details
    Browse the repository at this point in the history