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
if (null != snapshotMessageKey && !snapshotProcessed) {
254
-
//If there is a snapshot key present, we process (and discard) all the messages until we found the snapshot marker that corresponds to the snapshot key.
261
+
//If there is a snapshot key present, we process (and discard) all the messages until we find the snapshot marker that corresponds to the snapshot key.
255
262
Iterator<ConsumerRecord<KafkaSqlMessageKey, KafkaSqlMessage>> it = records.iterator();
256
263
while (it.hasNext() && !snapshotProcessed) {
257
264
ConsumerRecord<KafkaSqlMessageKey, KafkaSqlMessage> record = it.next();
258
265
if (processSnapshot(snapshotMessageKey, record)) {
259
-
log.info("Subscribing to {}", configuration.topic());
260
266
snapshotProcessed = true;
261
267
break;
268
+
} else {
269
+
log.info("Discarding message with key {} as it was sent before a snapshot was created", record.key());
Copy file name to clipboardexpand all lines: app/src/main/resources-unfiltered/META-INF/resources/api-specifications/registry/v3/openapi.json
+22
Original file line number
Diff line number
Diff line change
@@ -2801,6 +2801,28 @@
2801
2801
"description": "Gets a list of all the configured artifact types.\n\nThis operation can fail for the following reasons:\n\n* A server error occurred (HTTP error `500`)\n"
2802
2802
}
2803
2803
},
2804
+
"/admin/config/triggerSnapshot": {
2805
+
"summary": "Triggers a snapshot of the Registry storage. Only supported in KafkaSQL storage",
2806
+
"get": {
2807
+
"tags": [
2808
+
"KafkaSQL",
2809
+
"Admin",
2810
+
"Snapshot"
2811
+
],
2812
+
"responses": {
2813
+
"200": {
2814
+
"content": {},
2815
+
"description": "Empty content. A 200 means that the snapshot has been successfully triggered."
2816
+
},
2817
+
"500": {
2818
+
"$ref": "#/components/responses/ServerError"
2819
+
}
2820
+
},
2821
+
"operationId": "triggerSnapshot",
2822
+
"summary": "Trigger storage snapshot",
2823
+
"description": "Triggers the creation of a snapshot of the internal database for compatible storages.\n\nThis operation can fail for the following reasons:\n\n* A server error occurred (HTTP error `500`)\n"
Copy file name to clipboardexpand all lines: common/src/main/resources/META-INF/openapi.json
+22
Original file line number
Diff line number
Diff line change
@@ -2737,6 +2737,28 @@
2737
2737
"description": "Gets a list of all the configured artifact types.\n\nThis operation can fail for the following reasons:\n\n* A server error occurred (HTTP error `500`)\n"
2738
2738
}
2739
2739
},
2740
+
"/admin/config/triggerSnapshot": {
2741
+
"summary": "Triggers a snapshot of the Registry storage. Only supported in KafkaSQL storage",
2742
+
"get": {
2743
+
"tags": [
2744
+
"KafkaSQL",
2745
+
"Admin",
2746
+
"Snapshot"
2747
+
],
2748
+
"responses": {
2749
+
"200": {
2750
+
"content": {},
2751
+
"description": "Empty content. A 200 means that the snapshot has been successfully triggered."
2752
+
},
2753
+
"500": {
2754
+
"$ref": "#/components/responses/ServerError"
2755
+
}
2756
+
},
2757
+
"operationId": "triggerSnapshot",
2758
+
"summary": "Trigger storage snapshot",
2759
+
"description": "Triggers the creation of a snapshot of the internal database for compatible storages.\n\nThis operation can fail for the following reasons:\n\n* A server error occurred (HTTP error `500`)\n"
0 commit comments