fix #904: 空记录时sleep 1s防止循环get数据过快

This commit is contained in:
machey
2018-09-11 22:47:53 +08:00
parent e450c3f83f
commit 8ae8f526a6

View File

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