Github user rmetzger commented on a diff in the pull request:
https://github.com/apache/flink/pull/2131#discussion_r68729145
--- 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 --
Yes, I think we should have retries there as well. In particular during
start up, many parallel Flink instances will query AWS for the shard iterator.
---
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.
---