hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-12490 Replace uses of setAutoFlush(boolean, boolean) (Solomon Duskis) -- ADDENDUM to fix failing TestAsyncProcess#testHTableFailedPutAndNewPut
Date Tue, 02 Dec 2014 19:48:55 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 2b976c6bd -> e424d4254


HBASE-12490 Replace uses of setAutoFlush(boolean, boolean) (Solomon Duskis) -- ADDENDUM to
fix failing TestAsyncProcess#testHTableFailedPutAndNewPut


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e424d425
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e424d425
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e424d425

Branch: refs/heads/branch-1
Commit: e424d4254efd8372cbf28b8c134fe2fec423639a
Parents: 2b976c6
Author: stack <stack@apache.org>
Authored: Tue Dec 2 11:48:46 2014 -0800
Committer: stack <stack@apache.org>
Committed: Tue Dec 2 11:48:46 2014 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/client/TestAsyncProcess.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e424d425/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestAsyncProcess.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestAsyncProcess.java
b/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestAsyncProcess.java
index a56a254..e4c4162 100644
--- a/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestAsyncProcess.java
+++ b/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestAsyncProcess.java
@@ -710,7 +710,9 @@ public class TestAsyncProcess {
     HTable ht = new HTable();
     MyAsyncProcess ap = new MyAsyncProcess(createHConnection(), conf, true);
     ht.ap = ap;
-    ht.setAutoFlushTo(false);
+    // This is deprecated method. Using it here only because the new HTable above is a bit
of a
+    // perversion skirting a bunch of setup.  Fix the HTable test-only constructor to do
more.
+    ht.setAutoFlush(false, true);
     ht.setWriteBufferSize(0);
 
     Put p = createPut(1, false);


Mime
View raw message