Skip to content

HBASE-22699 refactor isMetaClearingException #578

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

Merged
merged 1 commit into from
Sep 16, 2019
Merged

HBASE-22699 refactor isMetaClearingException #578

merged 1 commit into from
Sep 16, 2019

Conversation

ArthurSXL8
Copy link
Contributor

No description provided.

@ArthurSXL8 ArthurSXL8 changed the title HBASE-22700 refactor isMetaClearingException HBASE-22699 refactor isMetaClearingException Sep 3, 2019
@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
💙 reexec 1m 6s Docker mode activated.
_ Prechecks _
💚 dupname 0m 0s No case conflicting files found.
💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
💚 @author 0m 0s The patch does not contain any @author tags.
💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ branch-2 Compile Tests _
💙 mvndep 0m 15s Maven dependency ordering for branch
💚 mvninstall 5m 17s branch-2 passed
💚 compile 1m 22s branch-2 passed
💚 checkstyle 2m 4s branch-2 passed
💚 shadedjars 4m 39s branch has no errors when building our shaded downstream artifacts.
💚 javadoc 1m 5s branch-2 passed
💙 spotbugs 3m 26s Used deprecated FindBugs config; considering switching to SpotBugs.
💚 findbugs 4m 43s branch-2 passed
_ Patch Compile Tests _
💙 mvndep 0m 15s Maven dependency ordering for patch
💚 mvninstall 4m 48s the patch passed
💚 compile 1m 23s the patch passed
💚 javac 1m 23s the patch passed
💚 checkstyle 1m 51s the patch passed
💚 whitespace 0m 0s The patch has no whitespace issues.
💚 shadedjars 4m 8s patch has no errors when building our shaded downstream artifacts.
💚 hadoopcheck 15m 5s Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚 javadoc 0m 59s the patch passed
💚 findbugs 4m 37s the patch passed
_ Other Tests _
💔 unit 3m 37s hbase-client in the patch failed.
💔 unit 292m 51s hbase-server in the patch failed.
💚 asflicense 1m 5s The patch does not generate ASF License warnings.
357m 28s
Reason Tests
Failed junit tests hadoop.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
Subsystem Report/Notes
Docker Client=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 Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 2b2425832026 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-578/out/precommit/personality/provided.sh
git revision branch-2 / aeacfd3
Default Java 1.8.0_181
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-578/2/artifact/out/patch-unit-hbase-client.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-578/2/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-578/2/testReport/
Max. process+thread count 4978 (vs. ulimit of 10000)
modules C: hbase-client hbase-server U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-578/2/console
versions git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@saintstack saintstack left a comment

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.

@@ -87,15 +96,15 @@ public static Throwable findException(Object exception) {
}
Throwable cur = (Throwable) exception;
while (cur != null) {
if (isSpecialException(cur)) {
if (isExceptionWeCare(cur)) {
Copy link
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
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
Contributor Author

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
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-2 Sep 16, 2019
@saintstack
Copy link
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 free to 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