public void rollback(ConnectorTransactionHandle transaction) {
    MemoizedMetadata transactionalMetadata = transactions.remove(transaction);
    checkArgument(transactionalMetadata != null, "no such transaction: %s", transaction);
    transactionalMetadata
        .optionalGet()
        .ifPresent(
            metadata -> {
              try (ThreadContextClassLoader ignored = new ThreadContextClassLoader(classLoader)) {
                metadata.rollback();
              }
            });
  }
This is used to guarantee one transaction to one {@link MixedFormatConnectorMetadata}
amoro-format-mixed/amoro-mixed-trino/src/main/java/org/apache/amoro/trino/MixedFormatTransactionManager.java