HBASE-22569 Should treat null consistency as Consistency.STRONG in ConnectionUtils.timelineConsistentRead

This commit is contained in:
Duo Zhang 2019-06-12 10:50:44 +08:00 committed by zhangduo
parent d64e98a7b7
commit d2eee1400d
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ public final class ConnectionUtils {
TableName tableName, Query query, byte[] row, RegionLocateType locateType,
Function<Integer, CompletableFuture<T>> requestReplica, long rpcTimeoutNs,
long primaryCallTimeoutNs, Timer retryTimer, Optional<MetricsConnection> metrics) {
if (query.getConsistency() == Consistency.STRONG) {
if (query.getConsistency() != Consistency.TIMELINE) {
return requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);
}
// user specifies a replica id explicitly, just send request to the specific replica