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

    https://github.com/apache/flink/pull/3746#discussion_r115997026
  
    --- Diff: 
flink-connectors/flink-connector-kafka-base/src/main/java/org/apache/flink/streaming/connectors/kafka/internals/AbstractFetcher.java
 ---
    @@ -106,31 +139,69 @@ protected AbstractFetcher(
                        }
                }
     
    -           // create our partition state according to the 
timestamp/watermark mode 
    -           this.subscribedPartitionStates = 
initializeSubscribedPartitionStates(
    -                           assignedPartitionsWithInitialOffsets,
    +           this.unassignedPartitionsQueue = new ClosableBlockingQueue<>();
    +
    +           // initialize subscribed partition states with seed partitions
    +           this.subscribedPartitionStates = createPartitionStateHolders(
    +                           seedPartitionsWithInitialOffsets,
                                timestampWatermarkMode,
    -                           watermarksPeriodic, watermarksPunctuated,
    +                           watermarksPeriodic,
    +                           watermarksPunctuated,
                                userCodeClassLoader);
     
    -           // check that all partition states have a defined offset
    +           // check that all seed partition states have a defined offset
                for (KafkaTopicPartitionState partitionState : 
subscribedPartitionStates) {
    --- End diff --
    
    Could add generic parameter, but is already existing code.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to