You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/11/30 07:50:58 UTC

[GitHub] [pinot] KKcorps commented on a diff in pull request #9863: Add rate limit to Kinesis requests

KKcorps commented on code in PR #9863:
URL: https://github.com/apache/pinot/pull/9863#discussion_r1035630800


##########
pinot-plugins/pinot-stream-ingestion/pinot-kinesis/src/main/java/org/apache/pinot/plugin/stream/kinesis/KinesisConsumer.java:
##########
@@ -155,6 +162,17 @@ private KinesisRecordsBatch getResult(StreamPartitionMsgOffset startOffset, Stre
         if (Thread.interrupted()) {
           break;
         }
+
+        if (requestSentTime == currentWindow && getRecordsResponse.records().isEmpty()) {

Review Comment:
   @navina I feel like I should remove this isEmpty check from here. Reason being it doesn't cover the cases when we might be getting only 1-2 records on each .getRecords request and thus exceed the throughput limit.



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org