main
黄海 2 years ago
parent a305673283
commit 2b22be19af

@ -174,6 +174,9 @@ public class OpenGaussReplicationToKafka {
ProducerRecord<String, String> record = new ProducerRecord<>(TOPIC, res);
kafkaProducer.send(record);
System.out.println("send ok ==> " + res);
stream.setAppliedLSN(nowLsn);
stream.setFlushedLSN(nowLsn);
stream.forceUpdateStatus();
//write to redis
Redis.use().setex(key, EXPIRE_SECONDS, 1);
}

Loading…
Cancel
Save