[ 
https://issues.apache.org/jira/browse/HADOOP-544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Enis Soztutar updated HADOOP-544:
---------------------------------

    Release Note: 
This issue introduces new classes JobID, TaskID and TaskAttemptID, which should 
be used instead of their string counterparts. Functions in JobClient, 
TaskReport, RunningJob, jobcontrol.Job and TaskCompletionEvent that use string 
arguments are deprecated in favor of the corresponding ones that use ID 
objects. 
Applications can use xxxID.toString() and xxxID.forName() methods to 
convert/restore objects to/from strings.


  was:
This issue introduces new classes JobID, TaskInProgressID and TaskID, which 
should be used instead of their string counterparts. Functions in JobClient, 
TaskReport, RunningJob, jobcontrol.Job and TaskCompletionEvent that use string 
arguments are deprecated in favor of the corresponding ones that use ID 
objects. 
Applications can use xxxID.toString() and xxxID.forName() methods to 
convert/restore objects to/from strings.


    Hadoop Flags: [Incompatible change, Reviewed]  (was: [Reviewed, 
Incompatible change])

Changed the names of the classes in the release note, I will also fix and 
recommit CHANGES.txt.

> Replace the job, tip and task ids with objects.
> -----------------------------------------------
>
>                 Key: HADOOP-544
>                 URL: https://issues.apache.org/jira/browse/HADOOP-544
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: mapred
>    Affects Versions: 0.18.0
>            Reporter: Owen O'Malley
>            Assignee: Enis Soztutar
>             Fix For: 0.18.0
>
>         Attachments: id_v1.patch, id_v2.patch, id_v3.patch, id_v4.patch, 
> id_v5.patch, id_v6.patch, id_v7.patch, id_v8.patch, id_wip1.patch
>
>
> I think that it is silly to have tools parsing the strings that the framework 
> builds for task ids. I propose:
> class JobId implements Writable {
>    public int getJobId() {...}
> }
> class TaskId implements Writable {
>   public JobId getJobId(); 
>   public boolean isMap() { ... }
>   public int getTaskId() { ... }
> }
> class TaskAttemptId implements Writable {
>   public TaskId getTaskId();
>   public int getAttemptId();
> }
> each of the classes will have a toString() method that generates the current 
> string.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to