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();
265
270
if (processSnapshot(snapshotId, record)) {
271
+
log.debug("Snapshot marker found {} the new messages will be applied on top of the snapshot data.", record.key());
266
272
snapshotProcessed = true;
267
273
break;
268
-
} else {
269
-
log.debug("Discarding message with key {} as it was sent before a newer snapshot was created", record.key());
274
+
}
275
+
else {
276
+
log.debug("Discarding message with key {} as it was sent before a newer snapshot was created.", record.key());
270
277
}
271
278
}
272
279
@@ -318,6 +325,13 @@ private void processRecord(ConsumerRecord<KafkaSqlMessageKey, KafkaSqlMessage> r
318
325
return;
319
326
}
320
327
328
+
// 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.
329
+
if (record.value() instanceofCreateSnapshot1Message && !((CreateSnapshot1Message) record.value()).getSnapshotId().equals(lastTriggeredSnapshot)) {
330
+
log.debug("Snapshot trigger message with id {} being skipped since this replica did not trigger the creation.",
0 commit comments