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

kvcoord,kvclient,gossip: gossip range lease acquisition #52572

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

Commits on Aug 11, 2020

  1. kvcoord,kvclient,gossip: gossip range lease acquisition

    Before this patch, it was possible for a range cache to contain an
    outdated lease if the node with the lease was restarted or went
    AWOL.
    
    This patch introduces a mechanism by which the new owner of a range
    lease announces this ownership to other nodes via gossip.
    Any cached lease for that range gets updated from the gossip update
    if the gossiped lease is more recent than the one known.
    
    Release note (general change): CockroachDB nodes now learn more
    actively of range leadership transfers from other nodes. This makes
    query performance generally more resilient to routine node restarts,
    as fewer queries now get routed to an outdated or unavailable node.
    knz committed Aug 11, 2020
    Configuration menu
    Copy the full SHA
    f94d76a View commit details
    Browse the repository at this point in the history