pnowojski commented on a change in pull request #14390:
URL: https://github.com/apache/flink/pull/14390#discussion_r544997866



##########
File path: 
flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/streaming/connectors/kafka/FlinkKafkaProducer.java
##########
@@ -1086,8 +1086,8 @@ public void initializeState(FunctionInitializationContext 
context) throws Except
                nextTransactionalIdHintState = 
context.getOperatorStateStore().getUnionListState(
                        NEXT_TRANSACTIONAL_ID_HINT_DESCRIPTOR_V2);
 
-               if 
(context.getOperatorStateStore().getRegisteredStateNames().contains(NEXT_TRANSACTIONAL_ID_HINT_DESCRIPTOR))
 {
-                       migrateNextTransactionalIdHindState(context);
+               if 
(context.getOperatorStateStore().getRegisteredStateNames().contains(NEXT_TRANSACTIONAL_ID_HINT_DESCRIPTOR.getName()))
 {

Review comment:
       Yes, there is a migration test. Either this code is working correctly, 
or the test is not covering for this issue. 
   
   But since the test is failing after adding this `getName()`, maybe it was 
working correctly after all?




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