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
Copy file name to clipboardExpand all lines: data-prepper-plugins/dynamodb-source/src/main/java/org/opensearch/dataprepper/plugins/source/dynamodb/stream/ShardAcknowledgementManager.java
+17-10Lines changed: 17 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ public class ShardAcknowledgementManager {
Copy file name to clipboardExpand all lines: data-prepper-plugins/dynamodb-source/src/main/java/org/opensearch/dataprepper/plugins/source/dynamodb/stream/ShardConsumer.java
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -263,13 +263,12 @@ public void run() {
263
263
LOG.debug("Reached end of shard");
264
264
break;
265
265
}
266
-
267
-
if (System.currentTimeMillis() - lastCheckpointTime > DEFAULT_CHECKPOINT_INTERVAL_MILLS) {
268
-
LOG.debug("{} records written to buffer for shard {}", recordsWrittenToBuffer, shardId);
269
-
if (shardAcknowledgementManager == null) {
266
+
if (shardAcknowledgementManager == null) {
267
+
if (System.currentTimeMillis() - lastCheckpointTime > DEFAULT_CHECKPOINT_INTERVAL_MILLS) {
268
+
LOG.debug("{} records written to buffer for shard {}", recordsWrittenToBuffer, shardId);
Copy file name to clipboardExpand all lines: data-prepper-plugins/dynamodb-source/src/test/java/org/opensearch/dataprepper/plugins/source/dynamodb/stream/ShardAcknowledgementManagerTest.java
0 commit comments