You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by op...@apache.org on 2019/03/06 02:41:04 UTC
[hbase] 11/17: HBASE-21980 Fix typo in
AbstractTestAsyncTableRegionReplicasRead
This is an automated email from the ASF dual-hosted git repository.
openinx pushed a commit to branch HBASE-21879
in repository https://gitbox.apache.org/repos/asf/hbase.git
commit a5327caaf56cd063161adb6f9c9993f1bc3ae90f
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");
}
}