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:38:20 UTC
[hbase] branch branch-2 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 branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new cc92451 HBASE-21980 Fix typo in AbstractTestAsyncTableRegionReplicasRead
cc92451 is described below
commit cc924513ac69d5fd58c866dd115f5c00ea00f18f
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");
}
}