Github user tzulitai commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2131#discussion_r68731349
  
    --- Diff: 
flink-streaming-connectors/flink-connector-kinesis/src/main/java/org/apache/flink/streaming/connectors/kinesis/proxy/KinesisProxy.java
 ---
    @@ -155,55 +199,79 @@ public GetRecordsResult getRecords(String 
shardIterator, int maxRecordsToGet) {
         * @param startingSeqNum the sequence number that the iterator will 
start from
         * @return the shard iterator
         */
    +   @Override
        public String getShardIterator(KinesisStreamShard shard, String 
shardIteratorType, String startingSeqNum) {
    -           return kinesisClient.getShardIterator(shard.getStreamName(), 
shard.getShardId(), shardIteratorType, startingSeqNum).getShardIterator();
    +           return kinesisClient.getShardIterator(shard.getStreamName(), 
shard.getShard().getShardId(), shardIteratorType, 
startingSeqNum).getShardIterator();
    --- End diff --
    
    Okay. Actually, the 5 rps limit for `getShardIterator()` is per shard. 
We'll only have one thread making this call for each shard, so the rate limit 
won't be a problem for us. But as explained above, we should still retry + fail 
hard to let the user know if they need to adjust other non-Flink consumers.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to