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 8ED0A9869 for ; Sat, 4 Feb 2012 00:34:19 +0000 (UTC) Received: (qmail 60929 invoked by uid 500); 4 Feb 2012 00:34:19 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 60855 invoked by uid 500); 4 Feb 2012 00:34:18 -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 60842 invoked by uid 99); 4 Feb 2012 00:34:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2012 00:34:18 +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; Sat, 04 Feb 2012 00:34:15 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A67CA18C9D4 for ; Sat, 4 Feb 2012 00:33:54 +0000 (UTC) Date: Sat, 4 Feb 2012 00:33:54 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <270635589.10126.1328315634684.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1708918993.2428.1317881189698.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-2408) DFSClient#getNumCurrentReplicas is package private in 205 but public in branch-0.20-append 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-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13200202#comment-13200202 ] Hudson commented on HDFS-2408: ------------------------------ Integrated in Hadoop-Mapreduce-0.23-Commit #495 (See [https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Commit/495/]) HDFS-2889. getNumCurrentReplicas is package private but should be public on 0.23 (see HDFS-2408). Contributed by Gregory Chanan. atm : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1240415 Files : * /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/org/apache/hadoop/hdfs/DFSOutputStream.java > DFSClient#getNumCurrentReplicas is package private in 205 but public in branch-0.20-append > ------------------------------------------------------------------------------------------ > > Key: HDFS-2408 > URL: https://issues.apache.org/jira/browse/HDFS-2408 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs client > Affects Versions: 1.0.0 > Reporter: stack > Assignee: stack > Priority: Blocker > Fix For: 0.20.205.0 > > Attachments: hdfs-2408.txt > > > The below commit broke hdfs-826 for hbase in 205 rc1. It changes the accessiblity from public to package private on getNumCurrentReplicas and now current shipping hbase's at least cannot get at this method. > {code} > Revision 1174483 - (view) (download) (annotate) - [select for diffs] > Modified Fri Sep 23 01:30:18 2011 UTC (13 days, 4 hours ago) by szetszwo > File length: 136876 byte(s) > Diff to previous 1174479 (colored) > svn merge -c 1171137 from branch-0.20-security for HDFS-2333. > {code} > Here is diff between above change and one just previous: > http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-205/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java?view=diff&r1=1174479&r2=1174483&diff_format=u > This is a critical facility for us. > It seems like making this one method public again is all thats needed. I can make a patch like the below: > diff --git a/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java b/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java > index b9cb053..39955c9 100644 > --- a/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java > +++ b/src/hdfs/org/apache/hadoop/hdfs/DFSClient.java > @@ -3569,7 +3569,7 @@ public class DFSClient implements FSConstants, java.io.Closeable { > * block is not yet allocated, then this API will return 0 because there are > * no replicas in the pipeline. > */ > - int getNumCurrentReplicas() throws IOException { > + public int getNumCurrentReplicas() throws IOException { > synchronized(dataQueue) { > if (nodes == null) { > return blockReplication; > Can we get this into RC2? > Thanks, > St.Ack -- 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