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 c555101fa6bf6cd5888889cd010b75bb776646f6 Author: zhangduo <[email protected]> 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); }
