Skip to content

Commit

Permalink
Merge #29412
Browse files Browse the repository at this point in the history
29412: server: fix a confusing start message r=a-robinson a=petermattis

Include both bootstrapped (existing) and empty (new) engines in the
start message. Previously the message was only include bootstrapped
engines which was confusing when a node first joined a cluster.

See #27599

Release note: None

Co-authored-by: Peter Mattis <[email protected]>
  • Loading branch information
craig[bot] and petermattis committed Aug 31, 2018
2 parents 6a29a34 + 332c713 commit 61325cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/server/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,9 @@ func (n *Node) start(
// bumped immediately, which would be possible if gossip got started earlier).
n.startGossip(ctx, n.stopper)

log.Infof(ctx, "%s: started with %v engine(s) and attributes %v", n, bootstrappedEngines, attrs.Attrs)
allEngines := append([]engine.Engine(nil), bootstrappedEngines...)
allEngines = append(allEngines, emptyEngines...)
log.Infof(ctx, "%s: started with %v engine(s) and attributes %v", n, allEngines, attrs.Attrs)
return nil
}

Expand Down

0 comments on commit 61325cd

Please sign in to comment.