public static <T> T get(Future<T> future) throws IOException {
    try {
      return future.get();
    } catch (InterruptedException e) {
      throw (IOException) new InterruptedIOException().initCause(e);
    } catch (ExecutionException e) {
      throw rethrow(e.getCause());
    }
  }
A helper class for getting the result of a Future, and convert the error to an
{@link IOException}.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/FutureUtils.java