GitHub user tillrohrmann opened a pull request:
https://github.com/apache/flink/pull/2569
[FLINK-4711] Let the Task trigger partition state requests and handle their
responses
This PR makes changes the partition state check in a way that the Task is
now responsible
for triggering the state check instead of the SingleInputGate. Furthermore,
the operation
returns a future containing the JobManager's answer. That way we don't have
to route the
response through the TaskManager and can add automatic retries in case of a
timeout.
The PR removes the JobManagerCommunicationFactory and gets rid of the
excessive
PartitionStateChecker and ResultPartitionConsumableNotifier creation.
Instead of creating
for each SingleInputGate one PartitionStateChecker we create one for the
TaskManager which
is reused across all SingleInputGates. The same applies to the
ResultPartitionConsumableNotifier.
This PR is also a simplification for the Flip-6 implementation.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tillrohrmann/flink fixOnUpdatePartitionState
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/2569.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 #2569
----
commit eefd4ee31633656d134078503a60f43e14806311
Author: Till Rohrmann <[email protected]>
Date: 2016-09-29T14:19:30Z
[FLINK-4711] Let the Task trigger partition state requests and handle their
responses
This PR makes changes the partition state check in a way that the Task is
now responsible
for triggering the state check instead of the SingleInputGate. Furthermore,
the operation
returns a future containing the JobManager's answer. That way we don't have
to route the
response through the TaskManager and can add automatic retries in case of a
timeout.
The PR removes the JobManagerCommunicationFactory and gets rid of the
excessive
PartitionStateChecker and ResultPartitionConsumableNotifier creation.
Instead of creating
for each SingleInputGate one PartitionStateChecker we create one for the
TaskManager which
is reused across all SingleInputGates. The same applies to the
ResultPartitionConsumableNotifier.
----
---
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.
---