Pass isAtShardEnd correctly to processRecords call (#935)

The default is false otherwise, i.e., the processor is always getting isAtShardEnd=false.
This commit is contained in:
Jan Sochor 2023-01-31 18:53:45 +01:00 committed by GitHub
parent 6146ff9851
commit 65c95ed872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,7 +215,7 @@ public class ProcessTask implements ConsumerTask {
shardInfoId);
final ProcessRecordsInput processRecordsInput = ProcessRecordsInput.builder().records(records).cacheExitTime(input.cacheExitTime()).cacheEntryTime(input.cacheEntryTime())
.checkpointer(recordProcessorCheckpointer).millisBehindLatest(input.millisBehindLatest()).build();
.isAtShardEnd(input.isAtShardEnd()).checkpointer(recordProcessorCheckpointer).millisBehindLatest(input.millisBehindLatest()).build();
final MetricsScope scope = MetricsUtil.createMetricsWithOperation(metricsFactory, PROCESS_TASK_OPERATION);
shardInfo.streamIdentifierSerOpt()