hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r722322 - in /hadoop/hbase/trunk: CHANGES.txt src/test/org/apache/hadoop/hbase/thrift/TestThriftServer.java
Date Tue, 02 Dec 2008 01:33:01 GMT
Author: apurtell
Date: Mon Dec  1 17:33:00 2008
New Revision: 722322

URL: http://svn.apache.org/viewvc?rev=722322&view=rev
Log:
HBASE-1037 Some test cases failing on Windows/Cygwin but not UNIX/Linux

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/thrift/TestThriftServer.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=722322&r1=722321&r2=722322&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Mon Dec  1 17:33:00 2008
@@ -86,6 +86,7 @@
    HBASE-1021  hbase metrics FileContext not working
    HBASE-1023  Check global flusher
    HBASE-1036  HBASE-1028 broke Thrift
+   HBASE-1037  Some test cases failing on Windows/Cygwin but not UNIX/Linux
       
   IMPROVEMENTS
    HBASE-901   Add a limit to key length, check key and value length on client side

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/thrift/TestThriftServer.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/thrift/TestThriftServer.java?rev=722322&r1=722321&r2=722322&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/thrift/TestThriftServer.java (original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/thrift/TestThriftServer.java Mon Dec
 1 17:33:00 2008
@@ -189,6 +189,10 @@
     long time1 = System.currentTimeMillis();
     handler.mutateRowTs(tableAname, rowAname, getMutations(), time1);
 
+    // Sleep to assure that 'time1' and 'time2' will be different even with a
+    // coarse grained system timer.
+    Thread.sleep(1000);
+
     // Apply timestamped BatchMutations for rowA and rowB
     long time2 = System.currentTimeMillis();
     handler.mutateRowsTs(tableAname, getBatchMutations(), time2);
@@ -253,6 +257,10 @@
     long time1 = System.currentTimeMillis();
     handler.mutateRowTs(tableAname, rowAname, getMutations(), time1);
 
+    // Sleep to assure that 'time1' and 'time2' will be different even with a
+    // coarse grained system timer.
+    Thread.sleep(1000);
+
     // Apply timestamped BatchMutations for rowA and rowB
     long time2 = System.currentTimeMillis();
     handler.mutateRowsTs(tableAname, getBatchMutations(), time2);



Mime
View raw message