Skip to content

Commit f650a9f

Browse files
committed
[FLINK-38754][runtime] Avoid reverse DNS lookups when connecting to BlobServer
1 parent e42cdd1 commit f650a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public BlobClient(InetSocketAddress serverAddress, Configuration clientConfig)
9595
// the
9696
// InetSocketAddress can cache a failure in hostname resolution forever.
9797
socket.connect(
98-
new InetSocketAddress(serverAddress.getHostName(), serverAddress.getPort()),
98+
new InetSocketAddress(serverAddress.getHostString(), serverAddress.getPort()),
9999
clientConfig.get(BlobServerOptions.CONNECT_TIMEOUT));
100100
socket.setSoTimeout(clientConfig.get(BlobServerOptions.SO_TIMEOUT));
101101
} catch (Exception e) {

0 commit comments

Comments
 (0)