allow reading translation from nodes in UNKNOWN state

This commit is contained in:
Matthew Jaffee 2022-04-28 12:54:30 -05:00 committed by Matthew Jaffee
parent 02663d0282
commit 364888086b

4
api.go
View file

@ -866,7 +866,9 @@ func (api *API) TranslateData(ctx context.Context, indexName string, partition i
nodes := snap.PartitionNodes(partition)
var upNode *topology.Node
for _, node := range nodes {
if node.State == disco.NodeStateStarted {
// we all UNKNOWN state here because we often mistakenly think
// a node is not up under heavy load.
if node.State == disco.NodeStateStarted || node.State == disco.NodeStateUnknown {
upNode = node
break
}