aqibmehmoodDH commented on code in PR #255:
URL: 
https://github.com/apache/flink-connector-aws/pull/255#discussion_r4739946581


##########
flink-connector-aws/flink-connector-aws-kinesis-streams/src/main/java/org/apache/flink/connector/kinesis/source/reader/fanout/FanOutKinesisShardSplitReader.java:
##########
@@ -42,6 +42,12 @@
  */
 @Internal
 public class FanOutKinesisShardSplitReader extends KinesisShardSplitReaderBase 
{
+
+    // See FanOutKinesisShardSubscription#maxRecoverableAttempts.
+    private static final int MAX_RECOVERABLE_SUBSCRIBE_ATTEMPTS = 100;
+    private static final Duration RECOVERABLE_SUBSCRIBE_BASE_BACKOFF = 
Duration.ofMillis(500);
+    private static final Duration RECOVERABLE_SUBSCRIBE_MAX_BACKOFF = 
Duration.ofSeconds(30);
+

Review Comment:
   No reason to, since they aren't configurable. Moved them into 
FanOutKinesisShardSubscription as defaults. The reader uses a new constructor 
without them. The full constructor stays package-private for tests



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to