hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject svn commit: r1389619 - /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/TestCoprocessorScanPolicy.java
Date Mon, 24 Sep 2012 22:05:01 GMT
Author: larsh
Date: Mon Sep 24 22:05:01 2012
New Revision: 1389619

URL: http://svn.apache.org/viewvc?rev=1389619&view=rev
Log:
HBASE-6784 TestCoprocessorScanPolicy is sometimes flaky when run locally

Modified:
    hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/TestCoprocessorScanPolicy.java

Modified: hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/TestCoprocessorScanPolicy.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/TestCoprocessorScanPolicy.java?rev=1389619&r1=1389618&r2=1389619&view=diff
==============================================================================
--- hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/TestCoprocessorScanPolicy.java
(original)
+++ hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/TestCoprocessorScanPolicy.java
Mon Sep 24 22:05:01 2012
@@ -90,12 +90,14 @@ public class TestCoprocessorScanPolicy {
     p.add(F, tableName, Bytes.toBytes(2));
     t.put(p);
 
+    long now = EnvironmentEdgeManager.currentTimeMillis();
+
     // insert 2 versions
     p = new Put(R);
-    p.add(F, Q, Q);
+    p.add(F, Q, now, Q);
     t.put(p);
     p = new Put(R);
-    p.add(F, Q, Q);
+    p.add(F, Q, now+1, Q);
     t.put(p);
     Get g = new Get(R);
     g.setMaxVersions(10);
@@ -113,7 +115,7 @@ public class TestCoprocessorScanPolicy {
 
     // insert a 3rd version
     p = new Put(R);
-    p.add(F, Q, Q);
+    p.add(F, Q, now+2, Q);
     t.put(p);
     g = new Get(R);
     g.setMaxVersions(10);



Mime
View raw message