Github user mxm commented on a diff in the pull request:
https://github.com/apache/flink/pull/2917#discussion_r92658254
--- Diff:
flink-runtime/src/main/scala/org/apache/flink/runtime/akka/AkkaUtils.scala ---
@@ -102,21 +102,24 @@ object AkkaUtils {
* specified, then the actor system will listen on the respective
address.
*
* @param configuration instance containing the user provided
configuration values
- * @param listeningAddress optional tuple of hostname and port to listen
on. If None is given,
- * then an Akka config for local actor system
will be returned
+ * @param externalAddress optional tuple of hostname and port to be
reachable at.
+ * If None is given, then an Akka config for
local actor system
+ * will be returned
* @return Akka config
*/
@throws(classOf[UnknownHostException])
def getAkkaConfig(configuration: Configuration,
- listeningAddress: Option[(String, Int)]): Config = {
+ externalAddress: Option[(String, Int)]): Config = {
val defaultConfig = getBasicAkkaConfig(configuration)
- listeningAddress match {
+ externalAddress match {
case Some((hostname, port)) =>
- val ipAddress = InetAddress.getByName(hostname)
- val hostString = "\"" + NetUtils.ipAddressToUrlString(ipAddress) +
"\""
- val remoteConfig = getRemoteAkkaConfig(configuration, hostString,
port)
+
+ val remoteConfig = getRemoteAkkaConfig(configuration,
+ NetUtils.getWildcardIPAddress, port,
--- End diff --
+1
---
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.
---