flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-2821) Change Akka configuration to allow accessing actors from different URLs
Date Thu, 15 Dec 2016 17:35:59 GMT

    [ https://issues.apache.org/jira/browse/FLINK-2821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15751968#comment-15751968

ASF GitHub Bot commented on FLINK-2821:

Github user mxm commented on a diff in the pull request:

    --- Diff: flink-runtime/src/main/scala/org/apache/flink/runtime/akka/AkkaUtils.scala ---
    @@ -216,12 +219,19 @@ object AkkaUtils {
        * identified by hostname.
        * @param configuration instance containing the user provided configuration values
    -   * @param hostname of the network interface to listen on
    +   * @param hostname of the network interface to bind on
        * @param port to bind to or if 0 then Akka picks a free port automatically
    +   * @param externalHostname The host name to expect for Akka messages
    +   * @param externalPort The port to expect for Akka messages
        * @return Flink's Akka configuration for remote actor systems
       private def getRemoteAkkaConfig(configuration: Configuration,
    -                                  hostname: String, port: Int): Config = {
    +                                  hostname: String, port: Int,
    +                                  externalHostname: String, externalPort: Int): Config
= {
    +    LOG.info(s"Using binding address $hostname:$port" +
    --- End diff --
    That's right. Removing this statement because this is also logged at JobManager startup.

> Change Akka configuration to allow accessing actors from different URLs
> -----------------------------------------------------------------------
>                 Key: FLINK-2821
>                 URL: https://issues.apache.org/jira/browse/FLINK-2821
>             Project: Flink
>          Issue Type: Bug
>          Components: Distributed Coordination
>            Reporter: Robert Metzger
>            Assignee: Maximilian Michels
> Akka expects the actor's URL to be exactly matching.
> As pointed out here, cases where users were complaining about this: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Error-trying-to-access-JM-through-proxy-td3018.html
>   - Proxy routing (as described here, send to the proxy URL, receiver recognizes only
original URL)
>   - Using hostname / IP interchangeably does not work (we solved this by always putting
IP addresses into URLs, never hostnames)
>   - Binding to multiple interfaces (any local does not work. Still no solution
to that (but seems not too much of a restriction)
> I am aware that this is not possible due to Akka, so it is actually not a Flink bug.
But I think we should track the resolution of the issue here anyways because its affecting
our user's satisfaction.

This message was sent by Atlassian JIRA

View raw message