private boolean hasCommandCompleted(final long commandId) {
    return getCommand(commandId).map(val -> {
      final boolean isActive = val.get("active").getAsBoolean();
      if (isActive) {
        LOG.debug("command {} is still active.", commandId);
      }
      return !isActive;
    }).orElse(false);
  }
Return {@code true} if the {@code commandId} has finished processing.
hbase-it/src/test/java/org/apache/hadoop/hbase/RESTApiClusterManager.java