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:
parent
11d749527a
commit
21a61ad597
|
@ -805,7 +805,7 @@ class ConnectionImplementation implements ClusterConnection, Closeable {
|
||||||
s.setReversed(true);
|
s.setReversed(true);
|
||||||
s.withStartRow(metaKey);
|
s.withStartRow(metaKey);
|
||||||
s.addFamily(HConstants.CATALOG_FAMILY);
|
s.addFamily(HConstants.CATALOG_FAMILY);
|
||||||
s.setOneRowLimit();
|
|
||||||
if (this.useMetaReplicas) {
|
if (this.useMetaReplicas) {
|
||||||
s.setConsistency(Consistency.TIMELINE);
|
s.setConsistency(Consistency.TIMELINE);
|
||||||
}
|
}
|
||||||
|
@ -835,6 +835,7 @@ class ConnectionImplementation implements ClusterConnection, Closeable {
|
||||||
try {
|
try {
|
||||||
Result regionInfoRow = null;
|
Result regionInfoRow = null;
|
||||||
s.resetMvccReadPoint();
|
s.resetMvccReadPoint();
|
||||||
|
s.setOneRowLimit();
|
||||||
try (ReversedClientScanner rcs =
|
try (ReversedClientScanner rcs =
|
||||||
new ReversedClientScanner(conf, s, TableName.META_TABLE_NAME, this, rpcCallerFactory,
|
new ReversedClientScanner(conf, s, TableName.META_TABLE_NAME, this, rpcCallerFactory,
|
||||||
rpcControllerFactory, getMetaLookupPool(), metaReplicaCallTimeoutScanInMicroSecond)) {
|
rpcControllerFactory, getMetaLookupPool(), metaReplicaCallTimeoutScanInMicroSecond)) {
|
||||||
|
|
Loading…
Reference in New Issue