mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fix #1585
This commit is contained in:
@@ -217,6 +217,8 @@ public class RdbEtlService {
|
|||||||
connTarget.setAutoCommit(false);
|
connTarget.setAutoCommit(false);
|
||||||
|
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
|
completed = false;
|
||||||
|
|
||||||
pstmt.clearParameters();
|
pstmt.clearParameters();
|
||||||
|
|
||||||
// 删除数据
|
// 删除数据
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ public class CanalKafkaProducer implements CanalMQProducer {
|
|||||||
properties.put("max.request.size", kafkaProperties.getMaxRequestSize());
|
properties.put("max.request.size", kafkaProperties.getMaxRequestSize());
|
||||||
properties.put("buffer.memory", kafkaProperties.getBufferMemory());
|
properties.put("buffer.memory", kafkaProperties.getBufferMemory());
|
||||||
properties.put("key.serializer", StringSerializer.class.getName());
|
properties.put("key.serializer", StringSerializer.class.getName());
|
||||||
|
properties.put("max.in.flight.requests.per.connection", 1);
|
||||||
|
|
||||||
if (!kafkaProperties.getProperties().isEmpty()) {
|
if (!kafkaProperties.getProperties().isEmpty()) {
|
||||||
properties.putAll(kafkaProperties.getProperties());
|
properties.putAll(kafkaProperties.getProperties());
|
||||||
|
|||||||
Reference in New Issue
Block a user