You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2019/03/03 00:37:52 UTC
[hbase] branch master updated: HBASE-21980 Fix typo in
AbstractTestAsyncTableRegionReplicasRead
This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new 7142cea HBASE-21980 Fix typo in AbstractTestAsyncTableRegionReplicasRead
7142cea is described below
commit 7142cea121b49677c748ae565dba89d2cc8971ab
Author: zhangduo <zh...@apache.org>
AuthorDate: Sat Mar 2 22:09:53 2019 +0800
HBASE-21980 Fix typo in AbstractTestAsyncTableRegionReplicasRead
---
.../hadoop/hbase/client/AbstractTestAsyncTableRegionReplicasRead.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/AbstractTestAsyncTableRegionReplicasRead.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/AbstractTestAsyncTableRegionReplicasRead.java
index c70af51..1a5dc2b 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/AbstractTestAsyncTableRegionReplicasRead.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/AbstractTestAsyncTableRegionReplicasRead.java
@@ -107,7 +107,7 @@ public abstract class AbstractTestAsyncTableRegionReplicasRead {
}
REPLICA_ID_TO_COUNT.computeIfAbsent(region.getReplicaId(), k -> new AtomicInteger())
.incrementAndGet();
- if (region.getRegionId() == RegionReplicaUtil.DEFAULT_REPLICA_ID && FAIL_PRIMARY_GET) {
+ if (region.getReplicaId() == RegionReplicaUtil.DEFAULT_REPLICA_ID && FAIL_PRIMARY_GET) {
throw new IOException("Inject error");
}
}