mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed issue #1672 , CanalKafkaProducer send
This commit is contained in:
@@ -203,9 +203,9 @@ public class CanalKafkaProducer implements CanalMQProducer {
|
|||||||
null,
|
null,
|
||||||
JSON.toJSONString(flatMessage, SerializerFeature.WriteMapNullValue));
|
JSON.toJSONString(flatMessage, SerializerFeature.WriteMapNullValue));
|
||||||
if (kafkaProperties.getTransaction()) {
|
if (kafkaProperties.getTransaction()) {
|
||||||
producer2.send(record);
|
producer2.send(record).get();
|
||||||
} else {
|
} else {
|
||||||
producer2.send(record);
|
producer2.send(record).get();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user