Github user StephanEwen commented on the issue:

    https://github.com/apache/flink/pull/5449
  
    This breaks the expected behavior, unfortunately.
    
    The logic is as follows:
      - try to connect to JM / RM / ZK and use an interface that you can 
connect from, if possible
      - if that does not work, fall back to your default interface 
(`getLocalHost()`) - the heuristic
    
    If we change step 2 to use `getByName("localhost")` it gives us the 
loopback interface which no one external can connect to. That would basically 
mean that TM is isolated for any data communication.
    
    The change to `ConnectionUtils` cannot be made like this. Instead, I would 
suggest to look at why the instability happens and fix the test instead (retry 
or a better test approach).


---

Reply via email to