public static void consume(CompletableFuture<?> future) {
    addListener(future, (r, e) -> {
      if (e != null) {
        LOG.warn("Async operation fails", e);
      }
    });
  }
Log the error if the future indicates any failure.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/FutureUtils.java