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

    https://github.com/apache/flink/pull/3078#discussion_r96145761
  
    --- Diff: 
flink-connectors/flink-connector-kinesis/src/main/java/org/apache/flink/streaming/connectors/kinesis/proxy/KinesisProxy.java
 ---
    @@ -253,6 +262,35 @@ public String getShardIterator(KinesisStreamShard 
shard, String shardIteratorTyp
                return getShardIteratorResult.getShardIterator();
        }
     
    +   /**
    +    * Determines whether the exception can be recovered from using
    +    * exponential-backoff
    +    * 
    +    * @param ex
    +    *            Exception to inspect
    +    * @return <code>true</code> if the exception can be recovered from, 
else
    +    *         <code>false</code>
    +    */
    +   protected static boolean isRecoverableException(AmazonServiceException 
ex) {
    +           if (ex.getErrorType() == null) {
    +                   return false;
    +           }
    +
    +           switch (ex.getErrorType()) {
    +           case Client:
    +                   if (ex instanceof 
ProvisionedThroughputExceededException) {
    --- End diff --
    
    It'll probably be cleaner to just do `ex instanceof 
ProvisionedThroughputExceededException `


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to