static void ensureOrThrow(boolean condition, String errStr) {
    if (!condition) {
      throw new AssertionError(errStr);
    }
  }
Throw {@link AssertionError} if the given condition is false.
@param condition the boolean condition to check.
@param errStr the error message to associate with the assertion error.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HelixBootstrapUpgradeUtil.java