You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by om...@apache.org on 2011/03/04 05:52:50 UTC

svn commit: r1077764 - /hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/hdfs/TestBalancer.java

Author: omalley
Date: Fri Mar  4 04:52:49 2011
New Revision: 1077764

URL: http://svn.apache.org/viewvc?rev=1077764&view=rev
Log:
commit c3d3185707958156540d893ed668519343c28b3f
Author: Alfred Thompson <at...@yahoo-inc.com>
Date:   Fri Oct 8 20:33:23 2010 +0000

    This revision fixes a bug in assert message generation.

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/hdfs/TestBalancer.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/hdfs/TestBalancer.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/hdfs/TestBalancer.java?rev=1077764&r1=1077763&r2=1077764&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/hdfs/TestBalancer.java (original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/hdfs/TestBalancer.java Fri Mar  4 04:52:49 2011
@@ -422,7 +422,11 @@ public class TestBalancer {
     private static final String ATTRNAME_USED_SPACE="usedSpace";
     private long getDatanodeUsedSpace(DNClient datanode) throws IOException {
         Object volInfo = datanode.getDaemonAttribute(DATANODE_VOLUME_INFO);
-        Assert.assertNotNull("Attribute %s should be non-null", volInfo);
+        Assert
+        .assertNotNull( String
+                        .format( "Attribute \"%s\" should be non-null",
+                                 DATANODE_VOLUME_INFO ),
+                        volInfo );
         String strVolInfo = volInfo.toString();
         LOG.debug( String.format("Value of %s: %s",
                    DATANODE_VOLUME_INFO,