public static boolean isRecoverableException(Throwable t) {
    return Stream.of(unrecoverableExceptions)
                 .allMatch(ex -> ExceptionUtils.indexOfType(t, ex) < 0);
  }
Determine the database product type
@param productName string to defer database connection
@return database product type
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DatabaseProduct.java