GitHub user tillrohrmann opened a pull request: https://github.com/apache/flink/pull/622
[FLINK-1925] Fixes blocked method submitTask on the TM The ```submitTask``` method which processes the ```SubmitTask``` message blocks while downloading the task jars from the ```JobManager```. Depending on the number of TMs and jars, this can take a long time. In order to get rid of the blocking call the ```submitTask``` method is split up into two phases: TDD reception with eager acknowledgement and TDD instantiation with a subsequent state update message. The TDD instantiation is executed concurrently in a future. Upon finishing the instantiation, an ```UpdateTaskExecutionState``` message with ```ExecutionState.RUNNING``` is sent to the JM. This implies that the state of the ```Execution``` is not directly set to ```RUNNING``` by the ```SubmitTask``` future handler which is created in ```Execution.deployToSlot```. You can merge this pull request into a Git repository by running: $ git pull https://github.com/tillrohrmann/flink fixSubmitTask Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/622.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 #622 ---- commit cccb6f2dc9ba506b117ba49f92b561cf35c60b2a Author: Till Rohrmann <trohrm...@apache.org> Date: 2015-04-23T14:13:22Z [FLINK-1925] [runtime] Splits the processing of the SubmitTask message into two phases: TDD reception with eager acknowledgement and TDD instantiation with a subsequent state update message. ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---