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

distsql: do not plan against unhealthy nodes #26950

Merged
merged 1 commit into from
Jun 25, 2018

Conversation

solongordon
Copy link
Contributor

@solongordon solongordon commented Jun 25, 2018

A bug was introduced in 0cd1da0 which allows table readers to be planned
on unhealthy or incompatible nodes for LIMIT queries. They should use
the gateway node instead. This was causing a panic in execution because
the node was not in the nodeAddresses map.

Fixes #26140

Release note (bug fix): Fixed 'node not in nodeAddresses map' panic,
which could occur when distributed queries were run on a cluster with at
least one unhealthy node.

@solongordon solongordon requested review from asubiotto and a team June 25, 2018 17:11
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@asubiotto
Copy link
Contributor

:lgtm: Nice find. This is something #21710 would have hopefully caught.


Review status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale)


Comments from Reviewable

A bug was introduced in 0cd1da0 which allows table readers to be planned
on unhealthy or incompatible nodes for LIMIT queries. They should use
the gateway node instead. This was causing a panic in execution because
the node was not in the nodeAddresses map.

Fixes cockroachdb#26140

Release note (bug fix): Fixed 'node not in nodeAddresses map' panic,
which could occur when distributed LIMIT queries were run on a cluster
with at least one unhealthy node.
@solongordon
Copy link
Contributor Author

Updated the commit message to reflect that this bug only affects LIMIT queries.

@solongordon
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Jun 25, 2018

Build failed

@solongordon
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Jun 25, 2018
26950: distsql: do not plan against unhealthy nodes r=solongordon a=solongordon

A bug was introduced in 0cd1da0 which allows table readers to be planned
on unhealthy or incompatible nodes for LIMIT queries. They should use
the gateway node instead. This was causing a panic in execution because
the node was not in the nodeAddresses map.

Fixes #26140

Release note (bug fix): Fixed 'node not in nodeAddresses map' panic,
which could occur when distributed queries were run on a cluster with at
least one unhealthy node.

Co-authored-by: Solon Gordon <[email protected]>
@craig
Copy link
Contributor

craig bot commented Jun 25, 2018

Build succeeded

@craig craig bot merged commit 626b72d into cockroachdb:master Jun 25, 2018
craig bot pushed a commit that referenced this pull request Jun 25, 2018
26953: release-2.0: distsql: do not plan against unhealthy nodes r=solongordon a=solongordon

Backport 1/1 commits from #26950.

/cc @cockroachdb/release

---

A bug was introduced in 0cd1da0 which allows table readers to be planned
on unhealthy or incompatible nodes for LIMIT queries. They should use
the gateway node instead. This was causing a panic in execution because
the node was not in the nodeAddresses map.

Fixes #26140

Release note (bug fix): Fixed 'node not in nodeAddresses map' panic,
which could occur when distributed queries were run on a cluster with at
least one unhealthy node.


Co-authored-by: Solon Gordon <[email protected]>
@solongordon solongordon deleted the fix-get-node-id branch June 26, 2018 18:27
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.

distsql: Nil pointer panic in PopulateEndpoints
3 participants