hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sur...@apache.org
Subject svn commit: r1099525 - in /hadoop/hdfs/trunk: CHANGES.txt src/test/hdfs/org/apache/hadoop/hdfs/MiniDFSCluster.java
Date Wed, 04 May 2011 17:16:23 GMT
Author: suresh
Date: Wed May  4 17:16:23 2011
New Revision: 1099525

URL: http://svn.apache.org/viewvc?rev=1099525&view=rev
Log:
DFS-1888. MiniDFSCluster#corruptBlockOnDatanodes() access must be public. Contributed by Suresh
Srinvias.


Modified:
    hadoop/hdfs/trunk/CHANGES.txt
    hadoop/hdfs/trunk/src/test/hdfs/org/apache/hadoop/hdfs/MiniDFSCluster.java

Modified: hadoop/hdfs/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/CHANGES.txt?rev=1099525&r1=1099524&r2=1099525&view=diff
==============================================================================
--- hadoop/hdfs/trunk/CHANGES.txt (original)
+++ hadoop/hdfs/trunk/CHANGES.txt Wed May  4 17:16:23 2011
@@ -491,6 +491,9 @@ Trunk (unreleased changes)
     include and exclude lists, on web and JMX interfaces.
     (Tanping Wang via szetszwo)
 
+    HDFS-1888. MiniDFSCluster#corruptBlockOnDatanodes() access must be
+    public. (suresh)
+
 Release 0.22.0 - Unreleased
 
   NEW FEATURES

Modified: hadoop/hdfs/trunk/src/test/hdfs/org/apache/hadoop/hdfs/MiniDFSCluster.java
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/src/test/hdfs/org/apache/hadoop/hdfs/MiniDFSCluster.java?rev=1099525&r1=1099524&r2=1099525&view=diff
==============================================================================
--- hadoop/hdfs/trunk/src/test/hdfs/org/apache/hadoop/hdfs/MiniDFSCluster.java (original)
+++ hadoop/hdfs/trunk/src/test/hdfs/org/apache/hadoop/hdfs/MiniDFSCluster.java Wed May  4
17:16:23 2011
@@ -1100,11 +1100,10 @@ public class MiniDFSCluster {
   /**
    * Return the contents of the given block on the given datanode.
    *
-   * @param The index of the datanode
-   * @param The name of the block
+   * @param block block to be corrupted
    * @throws IOException on error accessing the file for the given block
    */
-  int corruptBlockOnDataNodes(ExtendedBlock block) throws IOException{
+  public int corruptBlockOnDataNodes(ExtendedBlock block) throws IOException{
     int blocksCorrupted = 0;
     File[] blockFiles = getAllBlockFiles(block);
     for (File f : blockFiles) {



Mime
View raw message