-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli: Print more info to stdout when starting a node #9066
Conversation
Reviewed 3 of 3 files at r1. cli/start.go, line 403 [r1] (raw file):
I'm not sure the message "failed to join" is an appropriate description for this situation. Comments from Reviewable |
if initialBoot { | ||
if nodeID == server.FirstNodeID { | ||
fmt.Fprintf(tw, "Initialized new cluster\n") | ||
joinStr = "failed to join" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can't have a non-empty JoinList
and initialize a new cluster. This means that failed to join
will never be printed.
Review status: 2 of 3 files reviewed at latest revision, 3 unresolved discussions, some commit checks pending. cli/start.go, line 403 [r1] (raw file):
|
Throwing on the docs-todo label because this changes the output when running
Or this:
Or this:
|
Ok LGTM but let me bikeshed this just once more. I think the word "existing" in the messages doesn't carry what's happening well enough, especially in the case "existing node to existing cluster". Also it doesn't follow the pattern of the other lines that start with a
or something to the same effect. Review status: 2 of 3 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. cli/start.go, line 406 [r2] (raw file):
The word "existing" here is confusing. Comments from Reviewable |
Sure, prefixing them all with "status:" makes for nice consistency with the pattern. I also tried clarifying the messages a bit Review status: 2 of 3 files reviewed at latest revision, 3 unresolved discussions, some commit checks pending. Comments from Reviewable |
Also stop printing the --join addresses, since it's not made at all clear which of them was joined to.
Review status: 2 of 3 files reviewed at latest revision, 2 unresolved discussions, some commit checks pending. Comments from Reviewable |
As mentioned in #8650 (comment), I could use a little more explanation around the intended behavior when trying to join a cluster when a local store already exists, but otherwise this provides a little useful more info to stdout when starting a node.
Closes #8650
@mberhault @sploiselle
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)