maytasm commented on a change in pull request #9729:
URL: https://github.com/apache/druid/pull/9729#discussion_r414297759
##########
File path:
extensions-core/kinesis-indexing-service/src/main/java/org/apache/druid/indexing/kinesis/KinesisRecordSupplier.java
##########
@@ -780,15 +780,14 @@ private String
getSequenceNumberInternal(StreamPartition<String> partition, Shar
private String getSequenceNumberInternal(StreamPartition<String> partition,
String shardIterator)
{
long timeoutMillis = System.currentTimeMillis() +
fetchSequenceNumberTimeout;
+ GetRecordsResult recordsResult = null;
Review comment:
I want to access recordsResult outside of the while loop (so that I can
print the millisBehindLatest in the warn logging line 834). Hence, I moved
variable declaration of recordsResult to outside the while loop and we can
check for null in the warn logging. If it is not null (meaning it was assign in
the while loop when we getRecords from Kinesis) then we can log the
millisBehindLatest. This will help us be sure that timeout is due to no data or
not
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]