XComp opened a new pull request, #21869: URL: https://github.com/apache/flink/pull/21869
## What is the purpose of the change This change prevents a race condition where the bootstrap process finishes before the test calls stop which results in an outcome that's not expected in this test. ## Brief change log * Makes the getJobStatus method return an not-completed future which will halt the polling of the JobStatus until `stop` is called on the bootstrap process. ## Verifying this change Adding `Thread.sleep(1000)` before the [stop call|https://github.com/apache/flink/blob/329848e953566d5e086bcd4fc72c2e926db84715/flink-clients/src/test/java/org/apache/flink/client/deployment/application/ApplicationDispatcherBootstrapTest.java#L351] in the test code will simulate the issue. ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): no - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no - The serializers: no - The runtime per-record code paths (performance sensitive): no - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no - The S3 file system connector: no ## Documentation - Does this pull request introduce a new feature? no - If yes, how is the feature documented? not applicable -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
