Skip to content

HBASE-22699 refactor isMetaClearingException - #578

Merged
saintstack merged 1 commit into
apache:branch-2from
ArthurSXL8:HBASE-22699-branch2
Sep 16, 2019
Merged

HBASE-22699 refactor isMetaClearingException#578
saintstack merged 1 commit into
apache:branch-2from
ArthurSXL8:HBASE-22699-branch2

Conversation

@ArthurSXL8

Copy link
Copy Markdown
Contributor

No description provided.

@ArthurSXL8ArthurSXL8 changed the title HBASE-22700 refactor isMetaClearingExceptionHBASE-22699 refactor isMetaClearingExceptionSep 3, 2019
@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
💙reexec1m 6sDocker mode activated.
_ Prechecks _
💚dupname0m 0sNo case conflicting files found.
💚hbaseanti0m 0sPatch does not have any anti-patterns.
💚@author0m 0sThe patch does not contain any @author tags.
💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ branch-2 Compile Tests _
💙mvndep0m 15sMaven dependency ordering for branch
💚mvninstall5m 17sbranch-2 passed
💚compile1m 22sbranch-2 passed
💚checkstyle2m 4sbranch-2 passed
💚shadedjars4m 39sbranch has no errors when building our shaded downstream artifacts.
💚javadoc1m 5sbranch-2 passed
💙spotbugs3m 26sUsed deprecated FindBugs config; considering switching to SpotBugs.
💚findbugs4m 43sbranch-2 passed
_ Patch Compile Tests _
💙mvndep0m 15sMaven dependency ordering for patch
💚mvninstall4m 48sthe patch passed
💚compile1m 23sthe patch passed
💚javac1m 23sthe patch passed
💚checkstyle1m 51sthe patch passed
💚whitespace0m 0sThe patch has no whitespace issues.
💚shadedjars4m 8spatch has no errors when building our shaded downstream artifacts.
💚hadoopcheck15m 5sPatch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚javadoc0m 59sthe patch passed
💚findbugs4m 37sthe patch passed
_ Other Tests _
💔unit3m 37shbase-client in the patch failed.
💔unit292m 51shbase-server in the patch failed.
💚asflicense1m 5sThe patch does not generate ASF License warnings.
357m 28s
ReasonTests
Failed junit testshadoop.hbase.client.TestAsyncProcess
hadoop.hbase.client.replication.TestReplicationAdminWithClusters
hadoop.hbase.client.TestFromClientSide3
hadoop.hbase.client.TestSnapshotDFSTemporaryDirectory
hadoop.hbase.client.TestAsyncTableAdminApi
hadoop.hbase.replication.TestReplicationSmallTests
hadoop.hbase.client.TestCloneSnapshotFromClientNormal
hadoop.hbase.client.TestFromClientSideWithCoprocessor
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-578/2/artifact/out/Dockerfile
GITHUB PR#578
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 2b2425832026 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-578/out/precommit/personality/provided.sh
git revisionbranch-2 / aeacfd3
Default Java1.8.0_181
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-578/2/artifact/out/patch-unit-hbase-client.txt
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-578/2/artifact/out/patch-unit-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-578/2/testReport/
Max. process+thread count4978 (vs. ulimit of 10000)
modulesC: hbase-client hbase-server U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-578/2/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered byApache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@saintstacksaintstack left a comment

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.

Just one question. Otherwise, this LGTM.

Throwable cur = (Throwable) exception;
while (cur != null) {
if (isSpecialException(cur)) {
if (isExceptionWeCare(cur)) {

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.

Ok. Good. isSpecialException is an awful name. isExceptionWeCare is too but you made it private and it is only used here so its ok.

private static boolean isMetaCachePreservingException(Throwable t) {
return t instanceof RegionOpeningException || t instanceof RegionTooBusyException
|| t instanceof RpcThrottlingException || t instanceof RetryImmediatelyException
|| t instanceof RequestTooBigException;

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.

So, this list here is smaller than the list above in the old isSpecialException. I looked at one or two of the differences. It seems like superclasses are listed here and you drop the mention of subclasses. Is that the case? Just a little worried we're not catching something here that we used to.

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.

Yes, just remove subclasses, you mean the detailed messages in the subclass?

return isInstanceOfRegionServerOverloadedException(t);
}

private static boolean isInstanceOfRegionServerOverloadedException(Throwable t) {

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.

Good namings.

@saintstack
saintstack merged commit 5ccab83 into apache:branch-2Sep 16, 2019
asfgit pushed a commit that referenced this pull request Sep 16, 2019
@saintstack

Copy link
Copy Markdown
Contributor

Pulled back to branch-2.2 and branch-2.1 too as well as branch-2. Doesn't look like it makes sense on master. If not, all is good else, open new issue to forward parth. Thanks @johnhomsea .

asfgit pushed a commit that referenced this pull request Sep 19, 2019
asfgit pushed a commit that referenced this pull request Sep 19, 2019
symat pushed a commit to symat/hbase that referenced this pull request Feb 17, 2021
(cherry picked from commit b1d4878)
Change-Id: I0cee17d3d5bb80ddb880be07f0edab9ef7a8b890
symat pushed a commit to symat/hbase that referenced this pull request Feb 17, 2021
This reverts commit b1d4878.
(cherry picked from commit 6698268)
Change-Id: I539ad57f2bff56f4c5a070986483781a35f5b9e8
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

@ArthurSXL8@Apache-HBase@saintstack