-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-25663 Make graceful_stop localhostname compare match even if fqdn and unload regions #3053
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
Conversation
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
cc @saintstack |
bin/graceful_stop.sh
Outdated
| fi | ||
|
|
||
| unload_hostname="$hostname" | ||
| if [[ "$hostname" -eq "localhost" ]]; then |
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.
You’ll want to use == here because it’s comparing two strings
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
Mmmh I might have misunderstood the "localhost" mode.
And in Lines 61 to 64 in d74ae15
This is very confusing, because if someone has configured other ports and restart in Let me rethink about a proper solution or just leave the original proposed change #2973 (pushed by @saintstack in this commit 59ec375). So please don't merge this yet (I may close it an open with a new solution). |
|
Sorry for so many PRs, proceeding here: #3054 |
Previous: #3048
Adding it again because it was revered: c36e40e
And ddressing this issue: #3048 (review) (#3048 (comment))