tomma-a commented on issue #10193:
URL: https://github.com/apache/seatunnel/issues/10193#issuecomment-3698140367
It seems like:
seatunnel-connectors-v2/connector-kafka/src/main/java/org/apache/seatunnel/connectors/seatunnel/kafka/sink/KafkaTransactionSender.java
the for loop never break (getEpoch() never return 0)
in public void abortTransaction(long checkpointId) {
KafkaInternalProducer<K, V> producer;
if (this.kafkaProducer != null) {
producer = this.kafkaProducer;
} else {
producer =
getTransactionProducer(
this.kafkaProperties,
generateTransactionId(this.transactionPrefix,
checkpointId));
}
for (long i = checkpointId; ; i++) {
String transactionId =
generateTransactionId(this.transactionPrefix, i);
producer.setTransactionalId(transactionId);
if (log.isDebugEnabled()) {
log.debug("Abort kafka transaction: {}", transactionId);
}
producer.abortTransaction();
producer.flush();
if (producer.getEpoch() == 0) {
break;
}
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]