Bugfix for maxPendingProcessRecordsInput is 0#1708
Merged
lucienlu-aws merged 4 commits intoMar 2, 2026
Conversation
chenylee-aws
reviewed
Mar 2, 2026
Contributor
There was a problem hiding this comment.
Could you update it to Instant.now()? This is to avoid the false large delay warning for the first batch of records
chenylee-aws
reviewed
Mar 2, 2026
| } | ||
|
|
||
| public PollingConfig maxPendingProcessRecordsInput(int maxPendingProcessRecordsInput) { | ||
| if (maxPendingProcessRecordsInput > 5) { |
Contributor
There was a problem hiding this comment.
should probably use DEFAULT_MAX_PENDING_PROCESS_RECORDS_INPUT_LIMIT here as well.
chenylee-aws
reviewed
Mar 2, 2026
Comment on lines
49
to
51
| public static final int DEFAULT_MAX_PENDING_PROCESS_RECORDS_INPUT_LIMIT = 5; | ||
|
|
||
| public static final int DEFAULT_MAX_PENDING_PROCESS_RECORDS_INPUT = 4; |
Contributor
There was a problem hiding this comment.
could you make these two private?
chenylee-aws
approved these changes
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Description of changes:
maxPendingProcessRecordsInputto be 0. This commit fixes it, details belowmaxPendingProcessRecordsInputto have max value of 5Symptom
When
maxPendingProcessRecordsInputis 0 and the KCL application initializes aShardConsumerat a checkpoint that is not at tip (i.e. could be TRIM_HORIZON with 2 batches of records or a sequence number that has at least two batches of records after it), there is a 60 second delay when retrieving the second record.Fix
maxPendingProcessRecordsInputis 0, don't fetch records from Kinesis until Publisher has demandsubcsroption.request()andNotifyingSubscriberBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.