tzulitai commented on a change in pull request #13015:
URL: https://github.com/apache/flink/pull/13015#discussion_r483345056



##########
File path: 
flink-connectors/flink-connector-kinesis/src/main/java/org/apache/flink/streaming/connectors/kinesis/internals/publisher/fanout/FanOutRecordPublisherConfiguration.java
##########
@@ -0,0 +1,433 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package 
org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout;
+
+import 
org.apache.flink.streaming.connectors.kinesis.config.ConsumerConfigConstants;
+import 
org.apache.flink.streaming.connectors.kinesis.config.ConsumerConfigConstants.EFORegistrationType;
+import 
org.apache.flink.streaming.connectors.kinesis.config.ConsumerConfigConstants.RecordPublisherType;
+import org.apache.flink.streaming.connectors.kinesis.util.KinesisConfigUtil;
+import org.apache.flink.util.Preconditions;
+
+import javax.annotation.Nullable;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Properties;
+
+/**
+ * This is a configuration class for enhanced fan-out components.
+ */
+public class FanOutRecordPublisherConfiguration {
+
+       /**
+        * The efo registration type for de-/registration of streams.
+        */
+       private final EFORegistrationType efoRegistrationType;
+
+       /**
+        * The efo stream consumer name. Should not be Null if the 
efoRegistrationType is either LAZY or EAGER.
+        */
+       @Nullable
+       private String consumerName;
+
+       /**
+        * The manual set efo consumer arns for each stream. Should not be Null 
if the efoRegistrationType is NONE
+        */
+       @Nullable
+       private Map<String, String> streamConsumerArns;
+
+       /**
+        * Base backoff millis for the deregister stream operation.
+        */
+       private final int subscribeToShardMaxRetries;
+
+       /**
+        * Maximum backoff millis for the subscribe to shard operation.
+        */
+       private final long subscribeToShardMaxBackoffMillis;
+
+       /**
+        * Base backoff millis for the subscribe to shard operation.
+        */
+       private final long subscribeToShardBaseBackoffMillis;
+
+       /**
+        * Exponential backoff power constant for the subscribe to shard 
operation.
+        */
+       private final double subscribeToShardExpConstant;
+
+       /**
+        * Base backoff millis for the register stream operation.
+        */
+       private final long registerStreamBaseBackoffMillis;
+
+       /**
+        * Maximum backoff millis for the register stream operation.
+        */
+       private final long registerStreamMaxBackoffMillis;
+
+       /**
+        * Exponential backoff power constant for the register stream operation.
+        */
+       private final double registerStreamExpConstant;
+
+       /**
+        * Maximum retry attempts for the register stream operation.
+        */
+       private final int registerStreamMaxRetries;
+
+       /**
+        * Base backoff millis for the deregister stream operation.
+        */
+       private final long deregisterStreamBaseBackoffMillis;
+
+       /**
+        * Maximum backoff millis for the deregister stream operation.
+        */
+       private final long deregisterStreamMaxBackoffMillis;
+
+       /**
+        * Exponential backoff power constant for the deregister stream 
operation.
+        */
+       private final double deregisterStreamExpConstant;
+
+       /**
+        * Maximum retry attempts for the deregister stream operation.
+        */
+       private final int deregisterStreamMaxRetries;
+
+       /**
+        * Max retries for the describe stream operation.
+        */
+       private final int describeStreamMaxRetries;
+
+       /**
+        * Backoff millis for the describe stream operation.
+        */
+       private final long describeStreamBaseBackoffMillis;
+
+       /**
+        * Maximum backoff millis for the describe stream operation.
+        */
+       private final long describeStreamMaxBackoffMillis;
+
+       /**
+        * Exponential backoff power constant for the describe stream operation.
+        */
+       private final double describeStreamExpConstant;
+
+       /**
+        * Max retries for the describe stream consumer operation.
+        */
+       private final int describeStreamConsumerMaxRetries;
+
+       /**
+        * Backoff millis for the describe stream consumer operation.
+        */
+       private final long describeStreamConsumerBaseBackoffMillis;
+
+       /**
+        * Maximum backoff millis for the describe stream consumer operation.
+        */
+       private final long describeStreamConsumerMaxBackoffMillis;
+
+       /**
+        * Exponential backoff power constant for the describe stream consumer 
operation.
+        */
+       private final double describeStreamConsumerExpConstant;
+
+       /**
+        * Creates a FanOutProperties.

Review comment:
       ```suggestion
         * Creates a FanOutRecordPublisherConfiguration.
   ```

##########
File path: 
flink-connectors/flink-connector-kinesis/src/main/java/org/apache/flink/streaming/connectors/kinesis/util/KinesisConfigUtil.java
##########
@@ -44,13 +51,18 @@
 @Internal
 public class KinesisConfigUtil {
 
-       /** Maximum number of items to pack into an PutRecords request. **/
+       /**
+        * Maximum number of items to pack into an PutRecords request.
+        **/
        protected static final String COLLECTION_MAX_COUNT = 
"CollectionMaxCount";
 
-       /** Maximum number of items to pack into an aggregated record. **/
+       /**
+        * Maximum number of items to pack into an aggregated record.
+        **/

Review comment:
       These changes seem irrelevant to the issue, and in the future should be 
avoided as part of the main commits.
   It would be ok to include a `[hotfix]` commit for these changes.




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

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


Reply via email to