Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C21F2976D for ; Fri, 10 Feb 2012 19:33:23 +0000 (UTC) Received: (qmail 30694 invoked by uid 500); 10 Feb 2012 19:33:23 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 30600 invoked by uid 500); 10 Feb 2012 19:33:23 -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 30504 invoked by uid 99); 10 Feb 2012 19:33:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 19:33:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 19:33:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DA8681AF727 for ; Fri, 10 Feb 2012 19:32:59 +0000 (UTC) Date: Fri, 10 Feb 2012 19:32:59 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <270160943.25512.1328902379896.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2110930421.22834.1328844017619.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-2931) Switch the DataNode's BlockVolumeChoosingPolicy to be a private-audience interface 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-2931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205674#comment-13205674 ] Hudson commented on HDFS-2931: ------------------------------ Integrated in Hadoop-Common-0.23-Commit #535 (See [https://builds.apache.org/job/Hadoop-Common-0.23-Commit/535/]) svn merge -c 1242891 from trunk for HDFS-2931. szetszwo : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1242892 Files : * /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs * /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/java * /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockVolumeChoosingPolicy.java > Switch the DataNode's BlockVolumeChoosingPolicy to be a private-audience interface > ---------------------------------------------------------------------------------- > > Key: HDFS-2931 > URL: https://issues.apache.org/jira/browse/HDFS-2931 > Project: Hadoop HDFS > Issue Type: Task > Components: data-node > Affects Versions: 0.23.0 > Reporter: Harsh J > Assignee: Harsh J > Priority: Minor > Labels: api > Fix For: 0.24.0, 0.23.2 > > Attachments: HDFS-2931.patch > > > From Nicholas, at the tail of HDFS-1120: > {quote} > However, if we annotate it as public, all the classes associated with them should also be annotated as public. Also, whenever we change the interface or any of the associated classes, it is an incompatible change. > In our case, BlockVolumeChoosingPolicy uses FSVolumeInterface, which is a part of FSDatasetInterface. In FSDatasetInterface, there are many classes should not be exposed. One way to solve it is to make FSVolumeInterface independent of FSDatasetInterface. However, FSVolumeInterface is not yet a well-designed interface for the public. > For these reasons, it is justified to annotate it as private, the same as BlockPlacementPolicy. > {quote} > We should switch BlockVolumeChoosingPolicy to for a private audience. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira