Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 22732 invoked from network); 24 Apr 2007 21:09:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Apr 2007 21:09:38 -0000 Received: (qmail 8044 invoked by uid 500); 24 Apr 2007 21:09:43 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 8019 invoked by uid 500); 24 Apr 2007 21:09:43 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 8008 invoked by uid 99); 24 Apr 2007 21:09:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2007 14:09:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2007 14:09:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A949371406A for ; Tue, 24 Apr 2007 14:09:15 -0700 (PDT) Message-ID: <17708388.1177448955690.JavaMail.jira@brutus> Date: Tue, 24 Apr 2007 14:09:15 -0700 (PDT) From: "Konstantin Shvachko (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-1272) Extract InnerClasses from FSNamesystem into separate classes In-Reply-To: <4599173.1177016715284.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-1272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12491456 ] Konstantin Shvachko commented on HADOOP-1272: --------------------------------------------- - removeNeededReplications should take 2 more parameters rather than recalculating them does not need to be synchronized - updateNeededReplications should take new and old replications rather than deltas should not recalculate replication if it is already known - I don't think there is a need for removeNeededReplications and updateNeededReplications One can just use neededReplications.remove and neededReplications.update the way it used to be. - UnderReplicatedBlocks: 3 import warnings - SafeModeInfo 2 import warnings I really didn't like how the code got more complicated, because you need to startSafeModeMonitor() in 3 places rather than one, and stateChangeLog() is printing only in one place instead of 3. I'd just keep SafeModeInfo as an inner class. - FileUnderConstruction 1 import warning - Import warnings all new files. - Why GetImageServlet and FsckServlet are not separated? I thought nobody argued about keeping them inner as long as they are in the same package. > Extract InnerClasses from FSNamesystem into separate classes > ------------------------------------------------------------ > > Key: HADOOP-1272 > URL: https://issues.apache.org/jira/browse/HADOOP-1272 > Project: Hadoop > Issue Type: Bug > Components: dfs > Reporter: dhruba borthakur > Assigned To: dhruba borthakur > Attachments: innerclasses2.patch > > > This will make the code cleaner. Also, it leads itself to a cleaner and easily understandable finer-grain locking model. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.