Yingda Chen created TEZ-4045:
--------------------------------
Summary: Task should be accessible from TaskAttempt
Key: TEZ-4045
URL: https://issues.apache.org/jira/browse/TEZ-4045
Project: Apache Tez
Issue Type: Improvement
Reporter: Yingda Chen
Assignee: Ying Han
Currently In the DAG component hierarchy of DAG->Vertex->Task->TaskAttempt, we
usually allows the entity lower in the hierarchy to access its upstream entity,
for example, we have Task.getVertex(), and Vertex.getDAG().
However, TaskAttempt today is missing an interface to easily retreat the Task
it belongs to. This can be tricky (it is still doable today, but quite messy
and inefficient) when TaskAttempt is trying to access properties/interfaces
defined by Task. See, for example, the discussion in
[https://github.com/apache/tez/pull/37.]
This Jira proposes to add an TaskAttempt.getTask() method, and refactor codes
where this new method can help clarify the logic. Ideally, A TaskAttempt should
get Task object passing in as a constructing parameter.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)