This is an automated email from the ASF dual-hosted git repository.
MartijnVisser pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 4ea57c18cbe [FLINK-39794][tests] Bind
StreamNetworkBenchmarkEnvironment to loopback
4ea57c18cbe is described below
commit 4ea57c18cbe0fb2b71758a1d758b804dd75dd43b
Author: Martijn Visser <[email protected]>
AuthorDate: Thu May 28 10:54:52 2026 +0200
[FLINK-39794][tests] Bind StreamNetworkBenchmarkEnvironment to loopback
Generated-by: Claude Opus 4.7
---
.../io/benchmark/StreamNetworkBenchmarkEnvironment.java | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git
a/flink-runtime/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkBenchmarkEnvironment.java
b/flink-runtime/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkBenchmarkEnvironment.java
index 69fa3d09434..b166bcab734 100644
---
a/flink-runtime/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkBenchmarkEnvironment.java
+++
b/flink-runtime/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkBenchmarkEnvironment.java
@@ -50,7 +50,6 @@ import
org.apache.flink.runtime.util.NettyShuffleDescriptorBuilder;
import java.io.IOException;
import java.net.InetAddress;
-import java.net.UnknownHostException;
import static
org.apache.flink.runtime.io.network.partition.InputChannelTestUtils.newUnregisteredInputChannelMetrics;
import static org.apache.flink.util.ExceptionUtils.suppressExceptions;
@@ -61,15 +60,7 @@ import static
org.apache.flink.util.ExceptionUtils.suppressExceptions;
*/
public class StreamNetworkBenchmarkEnvironment<T extends IOReadableWritable> {
- private static final InetAddress LOCAL_ADDRESS;
-
- static {
- try {
- LOCAL_ADDRESS = InetAddress.getLocalHost();
- } catch (UnknownHostException e) {
- throw new Error(e);
- }
- }
+ private static final InetAddress LOCAL_ADDRESS =
InetAddress.getLoopbackAddress();
private final ResourceID location = ResourceID.generate();
protected final JobID jobId = new JobID();