flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tillrohrmann <...@git.apache.org>
Subject [GitHub] flink pull request #5600: [FLINK-8811] [flip6] Add initial implementation of...
Date Fri, 02 Mar 2018 10:39:49 GMT
Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5600#discussion_r171814808
  
    --- 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 --
    
    Because all state accesses to the MiniCluster are guarded since it can be used by potentially
multiple threads.


---

Mime
View raw message