Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 88241 invoked from network); 4 Jul 2008 00:35:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2008 00:35:40 -0000 Received: (qmail 31157 invoked by uid 500); 4 Jul 2008 00:35:39 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 31128 invoked by uid 500); 4 Jul 2008 00:35:39 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 31117 invoked by uid 99); 4 Jul 2008 00:35:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 17:35:39 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 00:34:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6CB4F234C14F for ; Thu, 3 Jul 2008 17:34:46 -0700 (PDT) Message-ID: <792200389.1215131686437.JavaMail.jira@brutus> Date: Thu, 3 Jul 2008 17:34:46 -0700 (PDT) From: "Robert Chansler (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-544) Replace the job, tip and task ids with objects. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Chansler updated HADOOP-544: ----------------------------------- Release Note: Introduced new classes JobID, TaskID and TaskAttemptID, which should be used instead of their string counterparts. Deprecated functions in JobClient, TaskReport, RunningJob, jobcontrol.Job and TaskCompletionEvent that use string arguments. Applications can use xxxID.toString() and xxxID.forName() methods to convert/restore objects to/from strings. was: 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. Hadoop Flags: [Incompatible change, Reviewed] (was: [Reviewed, Incompatible change]) > 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.