-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[HBASE-24714] Error message is displayed in the UI of table's compact… #2047
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. |
virajjasani
left a comment
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.
Left one comment. Seems we need more thoughts on this.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java
Outdated
Show resolved
Hide resolved
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java
Outdated
Show resolved
Hide resolved
| byte[] regionName = admin.getRegions(tableName).get(0).getRegionName(); | ||
| admin.unassign(regionName, true); | ||
| TEST_UTIL.waitUntilNoRegionsInTransition(10000); | ||
| try { |
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.
try {
admin.getCompactionState(tableName);
} catch (IOException e) {
fail("Exception is not excepted.");
}
is the same as
admin.getCompactionState(tableName);
Tests fails in case of exceptions.
…ion state if any region of that table is not open.
d8947c6 to
021647b
Compare
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
virajjasani
left a comment
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.
One null check should make this ready to go. Nice patch.
| for(StackTraceElement element : e.getStackTrace()) { | ||
| %><%= StringEscapeUtils.escapeHtml4(element.toString()) %><% | ||
| if(e.getCause().getCause() instanceof NotServingRegionException) { |
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.
if(e.getCause() != null && e.getCause().getCause() instanceof NotServingRegionException)
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.
yes @virajjasani . I updated the PR.
…ion state if any region of that table is not open.
|
🎊 +1 overall
This message was automatically generated. |
virajjasani
left a comment
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. |
|
🎊 +1 overall
This message was automatically generated. |
…ate if any region of that table is not open Closes #2047 Signed-off-by: Mingliang Liu <[email protected]> Signed-off-by: Viraj Jasani <[email protected]>
…ate if any region of that table is not open Closes #2047 Signed-off-by: Mingliang Liu <[email protected]> Signed-off-by: Viraj Jasani <[email protected]>
…ate if any region of that table is not open Closes apache#2047 Signed-off-by: Mingliang Liu <[email protected]> Signed-off-by: Viraj Jasani <[email protected]>
…ion state if any region of that table is not open.