-
Notifications
You must be signed in to change notification settings - Fork 312
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
cluster: Improve cluster restart messaging #2442
Conversation
Cluster restart messaging indicates to user that the: - Cluster will be unavailable (https://github.com/pingcap/tiup/blob/654b087a1d293128424c0bd04e1ba216b064ffd1/pkg/cluster/manager/basic.go#L235) This message is confusing when the command run only requests a single node restart, especially monitoring nodes or ones in an HA deployment. Commit changes the messaging so that users performing full cluster restart retain the same message as before. But users only restarting selected nodes or roles will have that replaced with a more detailed warning message: `Cluster functionality related to nodes: %s and roles: % will be unavailable`
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @zph! It looks like this is your first PR to pingcap/tiup 🎉 |
[LGTM Timeline notifier]Timeline:
|
I'm away from my computer tonight, but if there are persistent test failures I can retry my manual regression |
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.
LGTM, PTAL @kaaaaaaang
Looking at the failing test, I'm unable to see enough detail to assess if it's my changes or unrelated test issues. The part closest to pd receiving a signal is a connection error:
Please let me know if I should look into this test failure further or how I can run it locally to debug with more logs if it seems related to my change. |
What problem does this PR solve?
Cluster restart messaging indicates to user that the:
tiup/pkg/cluster/manager/basic.go
Line 235 in 654b087
This message is confusing when the command run only requests a single node restart, especially monitoring nodes or ones in an HA deployment.
What is changed and how it works?
Commit changes the messaging so that users performing full cluster restart retain the same message as before. But users only restarting selected nodes or roles will have that replaced with a more detailed warning message:
Cluster functionality related to nodes: %s and roles: % will be unavailable
Check List
Tests
Code changes
Side effects
Related changes
Release notes: