Github user StephanEwen commented on a diff in the pull request:
https://github.com/apache/flink/pull/2917#discussion_r90510382
--- Diff: flink-core/src/main/java/org/apache/flink/util/NetUtils.java ---
@@ -309,6 +313,19 @@ public static ServerSocket
createSocketFromPorts(Iterator<Integer> portsIterator
return null;
}
+ /**
+ * Returns the wildcard address to listen on all interfaces.
+ * @return Either 0.0.0.0 or :: depending on the IP setup.
+ */
+ public static String getWildcardIPAddress() {
--- End diff --
You could move that code into a static initializer. That way you don't need
to lock and check if it was set before.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---