hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077764 - /hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/hdfs/TestBalancer.java
Date Fri, 04 Mar 2011 04:52:50 GMT
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 <atx@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,



Mime
View raw message