public static void disableTableIfNotDisabled(Connection conn, TableName tableName)
    throws IOException {
    try {
      conn.getAdmin().disableTable(tableName);
    } catch (TableNotEnabledException | TableNotFoundException e) {
      // ignore
    }
  }
Method to disable a table, if not already disabled. This method suppresses
{@link TableNotEnabledException}, if thrown while disabling the table.
@param conn      connection to re-use
@param tableName table name which has moved into space quota violation
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaUtil.java