|
@@ -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();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|