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-20.2: *: check node decommissioned/draining state for DistSQL/consistency #66951

Merged

Conversation

erikgrinaker
Copy link
Contributor

Backport 1/1 commits from #66632.

Minor merge conflicts due to different signature for NodeLiveness.IsLive() (returns an error rather than a bool).

/cc @cockroachdb/release @cockroachdb/kv


The DistSQL planner and consistency queue did not take the nodes'
decommissioned or draining states into account, which in particular
could cause spurious errors when interacting with decommissioned nodes.

This patch adds convenience methods for checking node availability and
draining states, and avoids scheduling DistSQL flows on
unavailable nodes and consistency checks on unavailable/draining nodes.

Touches #66586, touches #45123.

Release note (bug fix): Avoid interacting with decommissioned nodes
during DistSQL planning and consistency checking.

The DistSQL planner and consistency queue did not take the nodes'
decommissioned or draining states into account, which in particular
could cause spurious errors when interacting with decommissioned nodes.

This patch adds convenience methods for checking node availability and
draining states, and avoids scheduling DistSQL flows on
unavailable nodes and consistency checks on unavailable/draining nodes.

Release note (bug fix): Avoid interacting with decommissioned nodes
during DistSQL planning and consistency checking.
@erikgrinaker erikgrinaker requested a review from tbg June 28, 2021 11:57
@erikgrinaker erikgrinaker self-assigned this Jun 28, 2021
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@erikgrinaker erikgrinaker merged commit 8086ff5 into cockroachdb:release-20.2 Jun 29, 2021
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.

3 participants