hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r1050109 - in /hadoop/hdfs/trunk: CHANGES.txt src/test/aop/org/apache/hadoop/hdfs/TestFiHFlush.java
Date Thu, 16 Dec 2010 19:25:36 GMT
Author: cos
Date: Thu Dec 16 19:25:35 2010
New Revision: 1050109

URL: http://svn.apache.org/viewvc?rev=1050109&view=rev
Log:
HDFS-1206. TestFiHFlush fails intermittently. Contributed by Konstantin Boudnik.

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

Modified: hadoop/hdfs/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/CHANGES.txt?rev=1050109&r1=1050108&r2=1050109&view=diff
==============================================================================
--- hadoop/hdfs/trunk/CHANGES.txt (original)
+++ hadoop/hdfs/trunk/CHANGES.txt Thu Dec 16 19:25:35 2010
@@ -451,6 +451,8 @@ Release 0.22.0 - Unreleased
     HDFS-613. TestBalancer and TestBlockTokenWithDFS fail Balancer assert.
     (Todd Lipcon via cos)
 
+    HDFS-1206. TestFiHFlush fails intermittently. (cos)
+
 Release 0.21.1 - Unreleased
 
   IMPROVEMENTS

Modified: hadoop/hdfs/trunk/src/test/aop/org/apache/hadoop/hdfs/TestFiHFlush.java
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/src/test/aop/org/apache/hadoop/hdfs/TestFiHFlush.java?rev=1050109&r1=1050108&r2=1050109&view=diff
==============================================================================
--- hadoop/hdfs/trunk/src/test/aop/org/apache/hadoop/hdfs/TestFiHFlush.java (original)
+++ hadoop/hdfs/trunk/src/test/aop/org/apache/hadoop/hdfs/TestFiHFlush.java Thu Dec 16 19:25:35
2010
@@ -52,10 +52,8 @@ public class TestFiHFlush {
     hft.fiCallHFlush.set(a);
     hft.fiErrorOnCallHFlush.set(new DataTransferTestUtil.VerificationAction(methodName, index));
     TestHFlush.doTheJob(conf, methodName, block_size, (short)3);
-    if (!trueVerification)
-      assertTrue(!hft.isSuccess());
-    else
-      assertTrue(hft.isSuccess());      
+    if (trueVerification)
+      assertTrue("Some of expected conditions weren't detected", hft.isSuccess());
   }
   
   /** The tests calls 



Mime
View raw message