Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 75616 invoked from network); 3 Oct 2008 08:47:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2008 08:47:11 -0000 Received: (qmail 77659 invoked by uid 500); 3 Oct 2008 08:47:03 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 77628 invoked by uid 500); 3 Oct 2008 08:47:03 -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 77617 invoked by uid 99); 3 Oct 2008 08:47:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 01:47:03 -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, 03 Oct 2008 08:46:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4EB17234C214 for ; Fri, 3 Oct 2008 01:46:44 -0700 (PDT) Message-ID: <2113721116.1223023604321.JavaMail.jira@brutus> Date: Fri, 3 Oct 2008 01:46:44 -0700 (PDT) From: "Amareshwari Sriramadasu (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-4122) Duplicate code in JobHistory TaskAttempt's can be collapsed into super class. In-Reply-To: <1716321929.1220938904749.JavaMail.jira@brutus> 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-4122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636575#action_12636575 ] Amareshwari Sriramadasu commented on HADOOP-4122: ------------------------------------------------- The methods logFailed() and logKilled() in JobInfo can also be merged into one method, since they differ only in one value. All the classes and all the methods to log the Job and task information, in JobHistory, are exposed to public, which is not necessary. They should be package private. This jira can make them package private. Thoughts? > Duplicate code in JobHistory TaskAttempt's can be collapsed into super class. > ------------------------------------------------------------------------------ > > Key: HADOOP-4122 > URL: https://issues.apache.org/jira/browse/HADOOP-4122 > Project: Hadoop Core > Issue Type: Improvement > Components: mapred > Reporter: Amareshwari Sriramadasu > Assignee: Amareshwari Sriramadasu > Priority: Blocker > Fix For: 0.19.0 > > > There is a lot of common code for MapAttempt, ReduceAttempt. All the duplicate code can be moved to TaskAttempt class. The methods logFailed() and logKilled() methods differ only in one string. They can be collapased into a single method. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.