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