mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 23:51:03 +00:00
allow reading translation from nodes in UNKNOWN state
This commit is contained in:
parent
02663d0282
commit
364888086b
1 changed files with 3 additions and 1 deletions
4
api.go
4
api.go
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue