Skip to content

HBASE-25594 Make easier to use graceful_stop on localhost mode - #3054

Merged
saintstack merged 1 commit into
apache:masterfrom
javierluca:HBASE-25594-2
Mar 18, 2021
Merged

HBASE-25594 Make easier to use graceful_stop on localhost mode#3054
saintstack merged 1 commit into
apache:masterfrom
javierluca:HBASE-25594-2

Conversation

@javierluca

Copy link
Copy Markdown
Contributor

This is just a very minor improvement over #2973 (that was actually pushed by @saintstack at 59ec375).

However, I like the approach to use "localhost" as the argument hostname for the purpose instead of having to pass the fqdn itself, so I would like to add such option (see #3048).

Comment threadbin/graceful_stop.sh
fi
if [ "$localhostname" == "$hostname" ] || [ "$hostname" == "localhost" ]; then
local=true
hostname=$localhostname

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my understanding, passing "localhost" to regionserver.sh is meant to be used in pseudo-distributed environments. See:

And it would use fixed ports:

if [ "$regionservers"="localhost" ];then
HBASE_REGIONSERVER_ARGS="\
-Dhbase.regionserver.port=16020 \
-Dhbase.regionserver.info.port=16030"

Since I want to avoid that, let me reassign hostname to the fqdn here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @javierluca . Thanks for digging in here.

Thanks for turning-up the 'overloading' of 'localhost'.

Above looks reasonable. Do we have to repeat the 'if [ "$localhostname" == "$hostname" ] ...' and the setting of local = true: i.e. do we need lines #108-110 in above now you've added #111-114?

Lets open new issue for this further discussion so we don't muddle JIRA+PR intent.

Thanks.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, on the ports for regionservers.sh, I think its just lazyness that they are hardcoded. Can change that in another issue.... Use HBASE_RS_BASE_PORT and HBASE_RS_INFO_BASE_PORT

@javierlucajavierlucaMar 19, 2021

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to repeat the 'if [ "$localhostname" == "$hostname" ] ...' and the setting of local = true

Ah no, that is my mistake. Sorry about that, we should remove the first check.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 28sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+0 🆗shelldocs0m 1sShelldocs was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
_ Patch Compile Tests _
+1 💚shellcheck0m 0sThere were no new shellcheck issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
_ Other Tests _
+1 💚asflicense0m 16sThe patch does not generate ASF License warnings.
2m 6s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3054/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#3054
Optional Testsdupname asflicense shellcheck shelldocs
unameLinux 6aca4e82b46a 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / d74ae15
Max. process+thread count49 (vs. ulimit of 30000)
modulesC: . U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3054/1/console
versionsgit=2.17.1 maven=3.6.3 shellcheck=0.4.6
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 13sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
_ Patch Compile Tests _
_ Other Tests _
2m 21s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3054/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#3054
Optional Tests
unameLinux e25aabdc729d 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / d74ae15
Max. process+thread count51 (vs. ulimit of 30000)
modulesC: . U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3054/1/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 27sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
_ Patch Compile Tests _
_ Other Tests _
2m 39s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3054/1/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#3054
Optional Tests
unameLinux b5673ef1a7de 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / d74ae15
Max. process+thread count46 (vs. ulimit of 30000)
modulesC: . U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3054/1/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@saintstacksaintstack changed the title HBOPS-25594 Make easier to use graceful_stop on localhost modeHBASE-25594 Make easier to use graceful_stop on localhost modeMar 16, 2021
@saintstack
saintstack merged commit 0cead10 into apache:masterMar 18, 2021
saintstack pushed a commit that referenced this pull request Mar 18, 2021
Co-authored-by: Javier <javier.lucadetena@linecorp.com>
saintstack pushed a commit that referenced this pull request Mar 18, 2021
Co-authored-by: Javier <javier.lucadetena@linecorp.com>
saintstack pushed a commit that referenced this pull request Mar 18, 2021
Co-authored-by: Javier <javier.lucadetena@linecorp.com>
saintstack added a commit that referenced this pull request Mar 18, 2021
#3054)"
This reverts commit 728d4f5.
Reverted because it an addendum and main patch did not land on this
branch so removing.
petersomogyi added a commit that referenced this pull request Mar 19, 2021
petersomogyi pushed a commit that referenced this pull request Mar 19, 2021
Co-authored-by: Javier <javier.lucadetena@linecorp.com>
petersomogyi added a commit that referenced this pull request Mar 19, 2021
petersomogyi pushed a commit that referenced this pull request Mar 19, 2021
Co-authored-by: Javier <javier.lucadetena@linecorp.com>
petersomogyi added a commit that referenced this pull request Mar 19, 2021
petersomogyi pushed a commit that referenced this pull request Mar 19, 2021
Co-authored-by: Javier <javier.lucadetena@linecorp.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@javierluca@Apache-HBase@saintstack