You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2019/04/21 10:06:01 UTC
[hbase] 15/18: HBASE-22239 Should translate the exception before
returning it in AsyncRegionServerAdmin
This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch HBASE-21512
in repository https://gitbox.apache.org/repos/asf/hbase.git
commit e8f667cdb93a3edc096a67a30b1f834de4792fa6
Author: zhangduo <zh...@apache.org>
AuthorDate: Sun Apr 14 22:27:44 2019 +0800
HBASE-22239 Should translate the exception before returning it in AsyncRegionServerAdmin
---
.../java/org/apache/hadoop/hbase/client/AsyncRegionServerAdmin.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/client/AsyncRegionServerAdmin.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/client/AsyncRegionServerAdmin.java
index d491890..bbbcdf2 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/client/AsyncRegionServerAdmin.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/client/AsyncRegionServerAdmin.java
@@ -104,7 +104,8 @@ public class AsyncRegionServerAdmin {
@Override
public void run(RESP resp) {
if (controller.failed()) {
- future.completeExceptionally(controller.getFailed());
+ future
+ .completeExceptionally(ConnectionUtils.translateException(controller.getFailed()));
} else {
future.complete(resp);
}