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

    https://github.com/apache/flink/pull/1117#discussion_r39251890
  
    --- Diff: 
flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-kafka/src/main/java/org/apache/flink/streaming/connectors/kafka/internals/LegacyFetcher.java
 ---
    @@ -356,29 +357,24 @@ public void run() {
                                // make sure that all partitions have some 
offsets to start with
                                // those partitions that do not have an offset 
from a checkpoint need to get
                                // their start offset from ZooKeeper
    -                           
    -                           List<FetchPartition> partitionsToGetOffsetsFor 
= new ArrayList<>();
    +                           {
    --- End diff --
    
    I'm opening a new scope for the `partitionsToGetOffsetsFor` variable.
    I'm using another list with the same name later in the code. WIth a new 
scope for the operation here, I can use the same variable name later again.



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