exceptionfactory commented on code in PR #9790:
URL: https://github.com/apache/nifi/pull/9790#discussion_r1987413795


##########
nifi-extension-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/kinesis/stream/ConsumeKinesisStream.java:
##########
@@ -652,7 +652,9 @@ synchronized Scheduler prepareScheduler(final 
ProcessContext context, final Proc
         final LeaseManagementConfig leaseManagementConfig = 
configsBuilder.leaseManagementConfig()
                 .failoverTimeMillis(getFailoverTimeMillis(context))
                 .streamName(streamName);
-        final CoordinatorConfig coordinatorConfig = 
configsBuilder.coordinatorConfig().workerStateChangeListener(workerState::set);
+        final CoordinatorConfig coordinatorConfig = 
configsBuilder.coordinatorConfig()
+                .workerStateChangeListener(workerState::set)
+                
.clientVersionConfig(CoordinatorConfig.ClientVersionConfig.CLIENT_VERSION_CONFIG_COMPATIBLE_WITH_2X);

Review Comment:
   Is there a way to check the current status of the Kinesis stream to 
determine whether this compatibility flag is needed?



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