-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-22699 refactor isMetaClearingException #436
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
Conversation
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.java
Show resolved
Hide resolved
hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.java
Outdated
Show resolved
Hide resolved
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
hbase-client/src/main/java/org/apache/hadoop/hbase/exceptions/ClientExceptionsUtil.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@@ -59,8 +59,7 @@ public static boolean isMetaClearingException(Throwable cur) { | |||
if (cur == null) { | |||
return true; | |||
} | |||
return !isSpecialException(cur) || (cur instanceof RegionMovedException) | |||
|| cur instanceof NotServingRegionException; | |||
return !regionDefinitelyOnTheRegionServerException(cur); | |||
} | |||
|
|||
public static boolean isSpecialException(Throwable cur) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this private? And can we reuse the regionDefinitelyOnTheRegionServerException so we can write less instance of here? And MultiActionResultTooLarge is not included in regionDefinitelyOnTheRegionServerException? Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MultiActionResultTooLarge is a subclass of RetryImmediatelyException, which is there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this private? And can we reuse the regionDefinitelyOnTheRegionServerException so we can write less instance of here? And MultiActionResultTooLarge is not included in regionDefinitelyOnTheRegionServerException?
Here the isSpecialException is equivalent with regionDefinitelyOnTheRegionServerException, the two more exceptions in isSpecialException are RegionMovedException and RegionOpeningException. Both of them are subclasses of NotServingRegionException, which is there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, the problem for using regionDefinitelyOnTheRegionServerException directly in findException is the name of the method... Maybe we could add a other method which is called something like 'the exception we care' and in the method we just call regionDefinitelyOnTheRegionServerException and add comments to say that they are the same for now, as the intention there is that, if we hit these exceptions then we will not trying to get the cause any more.
🎊 +1 overall
This message was automatically generated. |
|| cur instanceof MultiActionResultTooLarge || cur instanceof RetryImmediatelyException | ||
|| cur instanceof CallQueueTooBigException || cur instanceof CallDroppedException | ||
|| cur instanceof NotServingRegionException || cur instanceof RequestTooBigException); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace:end of line
💔 -1 overall
This message was automatically generated. |
|| cur instanceof MultiActionResultTooLarge || cur instanceof RetryImmediatelyException | ||
|| cur instanceof CallQueueTooBigException || cur instanceof CallDroppedException | ||
|| cur instanceof NotServingRegionException || cur instanceof RequestTooBigException); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace:end of line
💔 -1 overall
This message was automatically generated. |
|| cur instanceof MultiActionResultTooLarge || cur instanceof RetryImmediatelyException | ||
|| cur instanceof CallQueueTooBigException || cur instanceof CallDroppedException | ||
|| cur instanceof NotServingRegionException || cur instanceof RequestTooBigException); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace:end of line
💔 -1 overall
This message was automatically generated. |
|| cur instanceof MultiActionResultTooLarge || cur instanceof RetryImmediatelyException | ||
|| cur instanceof CallQueueTooBigException || cur instanceof CallDroppedException | ||
|| cur instanceof NotServingRegionException || cur instanceof RequestTooBigException); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace:end of line
💔 -1 overall
This message was automatically generated. |
|| cur instanceof MultiActionResultTooLarge || cur instanceof RetryImmediatelyException | ||
|| cur instanceof CallQueueTooBigException || cur instanceof CallDroppedException | ||
|| cur instanceof NotServingRegionException || cur instanceof RequestTooBigException); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace:end of line
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1.
🎊 +1 overall
This message was automatically generated. |
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 0a98df3) Change-Id: Idd84702acbea7f6173883953f29082b7a5a4bebf
No description provided.