You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConsumerRecord<KafkaSqlMessageKey, KafkaSqlMessage> record = it.next();
255
260
if (processSnapshot(snapshotId, record)) {
261
+
log.debug("Snapshot marker found {} the new messages will be applied on top of the snapshot data.", record.key());
256
262
snapshotProcessed = true;
257
263
break;
258
-
} else {
259
-
log.debug("Discarding message with key {} as it was sent before a newer snapshot was created", record.key());
264
+
}
265
+
else {
266
+
log.debug("Discarding message with key {} as it was sent before a newer snapshot was created.", record.key());
260
267
}
261
268
}
262
269
@@ -308,6 +315,13 @@ private void processRecord(ConsumerRecord<KafkaSqlMessageKey, KafkaSqlMessage> r
308
315
return;
309
316
}
310
317
318
+
// If the key is a CreateSnapshotMessage key, but this replica does not have the snapshotId, it means that it wasn't triggered here, so just skip the message.
319
+
if (record.value() instanceofCreateSnapshot1Message && !((CreateSnapshot1Message) record.value()).getSnapshotId().equals(lastTriggeredSnapshot)) {
320
+
log.debug("Snapshot trigger message with id {} being skipped since this replica did not trigger the creation.",
0 commit comments