fixed issue #1672 , CanalKafkaProducer send

This commit is contained in:
agapple
2019-04-08 19:57:00 +08:00
parent c5736bd5f3
commit 69df50fe17

View File

@@ -203,9 +203,9 @@ public class CanalKafkaProducer implements CanalMQProducer {
null,
JSON.toJSONString(flatMessage, SerializerFeature.WriteMapNullValue));
if (kafkaProperties.getTransaction()) {
producer2.send(record);
producer2.send(record).get();
} else {
producer2.send(record);
producer2.send(record).get();
}
}