private void rollbackTransaction(Transaction tx) {
        if (tx != null) {
            tx.rollback();
            tx.close();
        }
    }
Rollback transaction if it exists.
@param tx Transaction
inlong-sort-standalone/sort-standalone-source/src/main/java/org/apache/inlong/sort/standalone/sink/cls/ClsChannelWorker.java