Skip to content

Commit

Permalink
[FLINK-17301][tests] Set BIND_HOST to localhost in TaskManagerRunnerS…
Browse files Browse the repository at this point in the history
…tartupTest

We need to configure BIND_HOST to localhost, otherwise Netty will use the
wildcard addresss to bind to an IPv6 address whose port is not blocked.

This closes apache#11864.
  • Loading branch information
tillrohrmann committed Apr 27, 2020
1 parent cc59395 commit af1d21f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public void testStartupWhenNetworkStackFailsToInitialize() throws Exception {
try {
final Configuration cfg = createFlinkConfiguration();
cfg.setInteger(NettyShuffleEnvironmentOptions.DATA_PORT, blocker.getLocalPort());
cfg.setString(TaskManagerOptions.BIND_HOST, LOCAL_HOST);

startTaskManager(
cfg,
Expand Down

0 comments on commit af1d21f

Please sign in to comment.