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

    https://github.com/apache/flink/pull/5600#discussion_r171754724
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/minicluster/MiniCluster.java
 ---
    @@ -178,6 +181,13 @@ public URI getRestAddress() {
                }
        }
     
    +   public HighAvailabilityServices getHighAvailabilityServices() {
    +           synchronized (lock) {
    +                   checkState(running, "MiniCluster is not yet running.");
    --- End diff --
    
    I am curious about the lock in this place. Is not such a scene as follow ?
    
    Some tests or ITCase running in maven test simultaneously. And might be 
change this object at the same time. So, that is why we should have a lock here 
?


---

Reply via email to