You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2019/11/02 18:26:42 UTC
[hbase] branch branch-1.4 updated: HBASE-23185 Fix test failure by
HBASE-23185 changes (#788)
This is an automated email from the ASF dual-hosted git repository.
stack pushed a commit to branch branch-1.4
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-1.4 by this push:
new 8ffe79e HBASE-23185 Fix test failure by HBASE-23185 changes (#788)
8ffe79e is described below
commit 8ffe79ed10d95068dc7945adc73fa4257f125999
Author: bitterfox <bi...@gmail.com>
AuthorDate: Sun Nov 3 03:26:35 2019 +0900
HBASE-23185 Fix test failure by HBASE-23185 changes (#788)
Addendum to fix test failure.
---
.../apache/hadoop/hbase/client/HConnectionTestingUtility.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/HConnectionTestingUtility.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/HConnectionTestingUtility.java
index 89436e9..701576e 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/HConnectionTestingUtility.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/HConnectionTestingUtility.java
@@ -158,10 +158,11 @@ public class HConnectionTestingUtility {
}
NonceGenerator ng = Mockito.mock(NonceGenerator.class);
Mockito.when(c.getNonceGenerator()).thenReturn(ng);
- Mockito.when(c.getAsyncProcess()).thenReturn(
- new AsyncProcess(c, conf, null, RpcRetryingCallerFactory.instantiate(conf), false,
- RpcControllerFactory.instantiate(conf), conf.getInt(HConstants.HBASE_RPC_TIMEOUT_KEY,
- HConstants.DEFAULT_HBASE_RPC_TIMEOUT)));
+ AsyncProcess asyncProcess =
+ new AsyncProcess(c, conf, null, RpcRetryingCallerFactory.instantiate(conf), false,
+ RpcControllerFactory.instantiate(conf), conf.getInt(HConstants.HBASE_RPC_TIMEOUT_KEY,
+ HConstants.DEFAULT_HBASE_RPC_TIMEOUT));
+ Mockito.when(c.getAsyncProcess()).thenReturn(asyncProcess);
Mockito.doNothing().when(c).incCount();
Mockito.doNothing().when(c).decCount();
Mockito.when(c.getNewRpcRetryingCallerFactory(conf)).thenReturn(