process()方法中,在retry循环中处理成功应该break (#3080)

process()方法中,在retry循环中处理成功应该break
This commit is contained in:
hupeng
2021-04-16 21:14:43 +08:00
committed by GitHub
parent 846c8870ae
commit 66408782b0

View File

@@ -211,6 +211,7 @@ public class AdapterProcessor {
canalDestination,
System.currentTimeMillis() - begin);
}
break;
} catch (Exception e) {
if (i != retry - 1) {
canalMsgConsumer.rollback(); // 处理失败, 回滚数据