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

release-19.2: storage: remove the replica up to date check when transferring lease #42761

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

darinpp
Copy link
Contributor

@darinpp darinpp commented Nov 25, 2019

Backport 1/1 commits from #42379.

/cc @cockroachdb/release


Previously, we had a check that filtered out all replicas that
are lagging behind the leader in case of a lease transfer.

We remove that check so in case of lease preference for
a node that is constantly lagging - the lease transfer can occur without delay.

This removes the check that the candidates for lease transfer are only
replicas that aren't lagging behind. etcd implements the
3.10 Leadership transfer extension where the old leader will
bring up to date the new leader's log while blocking any new requests.

Release note (bug fix): now possible to transfer range leases to lagging replicas

Previously, we had a check that filtered out all replicas that
are lagging behind the leader in case of a lease transfer.

We had to remove that check because when the lease preference specifies
a node that is constantly lagging - the lease transfer will never occur.

This removes the check that the cadidates for lease transfer are only
replicas that aren't lagging behind. etcd implements the
3.10 Leadership transfer extension where the old leader will
bring up to date the new leader's log while blocking any new requests.

Release note (bug fix): now possible to transfer range leases to lagging replicas
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@darinpp darinpp merged commit 18fad7f into cockroachdb:release-19.2 Nov 26, 2019
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