GitHub user uce opened a pull request:

    https://github.com/apache/flink/pull/1202

    [dashboard] Redirect to leader in non-standalone mode

    - Redirects HTTP requests to the web fronted of the leading job manager if 
not associated with leading job manager
    - Splits up the start up of the job manager and web frontend (see 
`JobManager#runJobManager`) to first start the web fronted (binding to the 
port), then the job manager actor, then the web fronted with the address of the 
associated job manager.
    - The port of the web frontend to redirect is determined via a newly 
introduced `JobManagerMessage`
    - The associated job manager is used to determine whether the leader 
notification addresses the associated job manager or another one.
    - Adds web front end tests via HttpTestClient (moved the generated files to 
the src folder for this) 
    
    This breaks the leader notification abstraction in the sense that the job 
manager location is not transparent anymore. The reason for this is that the 
execution graph structures are not serializable (a proper fix would address 
this instead of redirecting). I have not integrated this with the 
TestingCluster.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/uce/flink redirect

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/1202.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1202
    
----
commit 5a88d5ed511f67b8b41c44789e13d58cc46c03a5
Author: Ufuk Celebi <[email protected]>
Date:   2015-09-25T09:44:53Z

    [tests] Add HttpTestClient for testing HTTP responses

commit 656d6d610842682ed69b36a4b9109eff7c257817
Author: Ufuk Celebi <[email protected]>
Date:   2015-09-25T09:47:30Z

    Split WebMonitor and LeaderRetrievalService start up

commit a7e8da82a4188e6b2861f15c6f313ac672bab958
Author: Ufuk Celebi <[email protected]>
Date:   2015-09-25T10:31:00Z

    Move generated /web files to src/main/resources

commit 999ddb44990eee9f6a753b6635e7662074db121b
Author: Ufuk Celebi <[email protected]>
Date:   2015-09-27T11:29:21Z

    [dashboard] Redirect to leader in non-standalone mode

----


---
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.
---

Reply via email to