Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 84886 invoked from network); 3 Jun 2010 19:25:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Jun 2010 19:25:20 -0000 Received: (qmail 34687 invoked by uid 500); 3 Jun 2010 19:25:20 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 34656 invoked by uid 500); 3 Jun 2010 19:25:20 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 34648 invoked by uid 99); 3 Jun 2010 19:25:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 19:25:20 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 19:25:18 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o53JOupp003434 for ; Thu, 3 Jun 2010 19:24:56 GMT Message-ID: <17136367.165761275593096597.JavaMail.jira@thor> Date: Thu, 3 Jun 2010 15:24:56 -0400 (EDT) From: "Konstantin Shvachko (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-1185) Remove duplicate now() functions in DataNode, FSNamesystem In-Reply-To: <19093648.153541275548578894.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-1185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875259#action_12875259 ] Konstantin Shvachko commented on HDFS-1185: ------------------------------------------- Sounds like a good idea. One nit. It would be nice to use import static, like this {code} import static org.apache.hadoop.hdfs.server.common.Util.now; {code} Then direct calls to {{now()}} in FDNamesystem and DataNode will remain unchanged. In other places it will just say {{now}}. > Remove duplicate now() functions in DataNode, FSNamesystem > ---------------------------------------------------------- > > Key: HDFS-1185 > URL: https://issues.apache.org/jira/browse/HDFS-1185 > Project: Hadoop HDFS > Issue Type: Improvement > Components: data-node, name-node > Reporter: Jeff > Priority: Minor > Attachments: HDFS-1185.patch > > > An identical now() function is defined in Util, DataNode, and FSNamesystem. This patch removes the latter two and converts all calls to use the Util.now function. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.