diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java index 1eaaa88470b..8cd45889ce3 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java @@ -406,7 +406,7 @@ class RawAsyncHBaseAdmin implements AsyncAdmin { @Override public void run(PRESP resp) { if (controller.failed()) { - future.completeExceptionally(new IOException(controller.errorText())); + future.completeExceptionally(controller.getFailed()); } else { try { future.complete(respConverter.convert(resp));