[FLINK-16705] Ensure MiniCluster shutdown does not interfere with JobResult retrieval
There is a race condition in `LocalExecutor` between (a) shutting down the cluster when the job has finished and (b) the client which retrieves the result of the job execution. This was observed in Beam, running a large test suite with the Flink Runner. We should make sure the job result retrieval and the cluster shutdown do not interfere. This adds a PerJobMiniClusterClient which guarantees that. Improve message for running flag state checks in MiniCluster Additionally check for the JobID in PerJobMiniClusterClient Introduce PerJobMiniCluster and a corresponding JobClient Add TestLogger to test Convert shutdown methods to be async This closes #11473.
Showing
想要评论请 注册 或 登录