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
The following commit(s) were added to refs/heads/HBASE-21512 by this push:
new 4a42159 HBASE-22239 Should translate the exception before returning
it in AsyncRegionServerAdmin
4a42159 is described below
commit 4a421596dde2f72e967a63d393dad4f0d70cad5c
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);
}