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

    https://github.com/apache/flink/pull/2450#discussion_r77212855
  
    --- Diff: 
flink-runtime/src/main/scala/org/apache/flink/runtime/minicluster/FlinkMiniCluster.scala
 ---
    @@ -69,7 +69,7 @@ abstract class FlinkMiniCluster(
         ConfigConstants.JOB_MANAGER_IPC_ADDRESS_KEY,
         InetAddress.getByName("localhost").getHostAddress())
     
    -  val configuration = generateConfiguration(userConfiguration)
    +  protected val _configuration = generateConfiguration(userConfiguration)
    --- End diff --
    
    It's actually the original configuration which will usually have the job 
manager ipc port set to 0. Thus, in order to return a configuration which 
points to the current leader, we have to generate a new configuration via 
`configuration` which inserts the selected port. I'll rename the variable to 
`originalConfiguration`. 


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