forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-10580] Harden BootstrapTool#startActorSystem
Instead of opening a socket to check whether a given port is free we simply start an ActorSystem with it an check whether it can bind to this port. This also solves the problem that a 0 port get resolved to a specific port which might get taken between closing the test socket and starting the ActorSystem.
- Loading branch information
1 parent
4be1afa
commit 7dbe4bb
Showing
2 changed files
with
57 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters