Uh oh!
There was an error while loading. Please reload this page.
HBASE-25663 Make graceful_stop localhostname compare match even if fqdn - #3048
Conversation
Apache-HBase
commented
Mar 12, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 12, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 12, 2021
🎊 +1 overall
This message was automatically generated. |
ekrettek
left a comment
There was a problem hiding this comment.
Confirmed this works when running with hostname --fqdn now!
Apache-HBase
commented
Mar 15, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 15, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 15, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 15, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 15, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 15, 2021
💔 -1 overall
This message was automatically generated. |
2 similar comments
Apache-HBase
commented
Mar 15, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Mar 15, 2021
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
@saintstack@ekrettek I am curious about how the stripServer condition in RegionMover.java will succeed after this PR:
From my understanding, this will compare the fqdn with "localhost", so it won't be able to strip it, leading the RegionMover to not unload and return early:
saintstack
commented
Mar 16, 2021
@javierluca Thank you for taking a look. Looks like the stripServer needs to handle 'localhost'. Let me make an addendum.... |
saintstack
commented
Mar 16, 2021
Or, let me just revert this and commit your patch; it works for you. |
@saintstack In my opinion, your change was better than mine because we could use Lines 61 to 64 in 59ec375 Just needed to address the unload_hostname="$hostname"if [[ "$hostname"-eq"localhost" ]];then
unload_hostname=`/bin/hostname -f`fi
unload_args="--filename $filename --maxthreads $maxthreads$noack --operation unload \--timeout $movetimeout --regionserverhost $unload_hostname"If you don't mind, I would like to submit a patch including the changes of this PR + above fix for the RegionMover. |
javierluca
commented
Mar 16, 2021
@saintstack addressing it at #3053. Please have a look 🙇 |
No description provided.