Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
distsql: do not plan against unhealthy nodes
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 LIMIT queries were run on a cluster with at least one unhealthy node.
- Loading branch information