Revert "修复kafka消费回滚的bug (#2521)" (#2526)

This reverts commit 31acfc0101.
This commit is contained in:
rewerma
2020-01-02 17:04:57 +08:00
committed by GitHub
parent 31acfc0101
commit b6333f018f
2 changed files with 15 additions and 20 deletions

View File

@@ -174,11 +174,6 @@ public abstract class AbstractCanalAdapterWorker {
if (i == retry - 1) {
connector.ack();
logger.error(e.getMessage() + " Error sync but ACK!");
try {
Thread.sleep(500);
} catch (InterruptedException e1) {
// ignore
}
return true;
} else {
connector.rollback();