mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 14:24:39 +00:00
Treat a uuid prefix lookup error as a soft error, as if a node name lookup returned nil.
Add a TODO to note where a future point of logging should occur once a logger is present.
This commit is contained in:
parent
295ca817f3
commit
62527c1698
@ -702,10 +702,13 @@ func (s *StateStore) NodeServices(ws memdb.WatchSet, nodeNameOrID string) (uint6
|
||||
return 0, nil, nil
|
||||
}
|
||||
|
||||
// Attempt to lookup the node by it's node ID
|
||||
// Attempt to lookup the node by its node ID
|
||||
iter, err := tx.Get("nodes", "uuid_prefix", nodeNameOrID)
|
||||
if err != nil {
|
||||
return 0, nil, fmt.Errorf("node ID lookup failed: %s", err)
|
||||
ws.Add(watchCh)
|
||||
// TODO(sean@): We could/should log an error re: the uuid_prefix lookup
|
||||
// failing once a logger has been introduced to the catalog.
|
||||
return 0, nil, nil
|
||||
}
|
||||
n = iter.Next()
|
||||
if n == nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user