Skip to content

HBASE-23257: Track clusterID in stand by masters (#798) - #1095

Closed
bharathv wants to merge 1 commit into
apache:branch-2from
bharathv:HBASE-23275-branch-2
Closed

HBASE-23257: Track clusterID in stand by masters (#798)#1095
bharathv wants to merge 1 commit into
apache:branch-2from
bharathv:HBASE-23275-branch-2

Conversation

@bharathv

Copy link
Copy Markdown
Contributor

This patch implements a simple cache that all the masters
can lookup to serve cluster ID to clients. Active HMaster
is still responsible for creating it but all the masters
will read it from fs to serve clients.

RPCs exposing it will come in a separate patch as a part of
HBASE-18095.

Signed-off-by: Andrew Purtell apurtell@apache.org
Signed-off-by: Wellington Chevreuil wchevreuil@apache.org
Signed-off-by: Guangxu Cheng guangxucheng@gmail.com
(cherry picked from commit c2e01f2)

This patch implements a simple cache that all the masters
can lookup to serve cluster ID to clients. Active HMaster
is still responsible for creating it but all the masters
will read it from fs to serve clients.
RPCs exposing it will come in a separate patch as a part of
HBASE-18095.
Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
Signed-off-by: Guangxu Cheng <guangxucheng@gmail.com>
(cherry picked from commit c2e01f2)
@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 37sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ branch-2 Compile Tests _
+1 💚mvninstall5m 32sbranch-2 passed
+1 💚compile0m 54sbranch-2 passed
+1 💚checkstyle1m 11sbranch-2 passed
+1 💚shadedjars4m 18sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 39sbranch-2 passed
+0 🆗spotbugs2m 53sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs2m 52sbranch-2 passed
_ Patch Compile Tests _
+1 💚mvninstall4m 51sthe patch passed
+1 💚compile0m 55sthe patch passed
+1 💚javac0m 55sthe patch passed
+1 💚checkstyle1m 10sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚shadedjars4m 15spatch has no errors when building our shaded downstream artifacts.
+1 💚hadoopcheck15m 38sPatch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 💚javadoc0m 35sthe patch passed
+1 💚findbugs3m 18sthe patch passed
_ Other Tests _
+1 💚unit151m 41shbase-server in the patch passed.
+1 💚asflicense0m 37sThe patch does not generate ASF License warnings.
205m 24s
SubsystemReport/Notes
DockerClient=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1095/1/artifact/out/Dockerfile
GITHUB PR#1095
JIRA IssueHBASE-23257
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 215f7abb36e8 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/Base-PreCommit-GitHub-PR_PR-1095/out/precommit/personality/provided.sh
git revisionbranch-2 / e0f9133
Default Java1.8.0_181
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1095/1/testReport/
Max. process+thread count6126 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1095/1/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

private ClusterId clusterId;

// cache stats for testing.
private AtomicInteger cacheMisses = new AtomicInteger(0);

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.

Nit: A bit wasteful to have this just for a test?

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.

Agree... wish Java had C++ like macros that we could use to inject DEBUG only code :D.

This code also exists in the master, I'll have to cleanup from there. Can I do it as a follow up?

@bharathv

Copy link
Copy Markdown
ContributorAuthor

Will be merged as a part of #1098

@bharathv
bharathv deleted the HBASE-23275-branch-2 branch January 29, 2020 00:45
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

@bharathv@Apache-HBase@apurtell