HBASE-18796 Addendum: Scanner returning null incorrectly during locateRegionInMeta retry, resulting in incorrect TableNotFoundException

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Abhishek Singh Chouhan 2017-09-22 20:20:23 +05:30 committed by Andrew Purtell
parent 11d749527a
commit 21a61ad597
1 changed files with 2 additions and 1 deletions

View File

@ -805,7 +805,7 @@ class ConnectionImplementation implements ClusterConnection, Closeable {
s.setReversed(true);
s.withStartRow(metaKey);
s.addFamily(HConstants.CATALOG_FAMILY);
s.setOneRowLimit();
if (this.useMetaReplicas) {
s.setConsistency(Consistency.TIMELINE);
}
@ -835,6 +835,7 @@ class ConnectionImplementation implements ClusterConnection, Closeable {
try {
Result regionInfoRow = null;
s.resetMvccReadPoint();
s.setOneRowLimit();
try (ReversedClientScanner rcs =
new ReversedClientScanner(conf, s, TableName.META_TABLE_NAME, this, rpcCallerFactory,
rpcControllerFactory, getMetaLookupPool(), metaReplicaCallTimeoutScanInMicroSecond)) {