mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
Merge pull request #931 from rewerma/master
fix #904: 空记录时sleep 1s防止循环get数据过快
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user