HBASE-21980 Fix typo in AbstractTestAsyncTableRegionReplicasRead

This commit is contained in:
zhangduo 2019-03-02 22:09:53 +08:00
parent 6d03807e4c
commit ada2680bc6
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}
}