Merge pull request #931 from rewerma/master

fix #904: 空记录时sleep 1s防止循环get数据过快
This commit is contained in:
agapple
2018-09-12 13:22:19 +08:00
committed by GitHub

View File

@@ -147,6 +147,12 @@ public class CanalKafkaStarter implements CanalServerStarter {
server.rollback(clientIdentity, batchId);
}
}); // 发送message到topic
} else {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
// ignore
}
}
} catch (Exception e) {