Revert "HBASE-21775 The BufferedMutator doesn't ever refresh region location cache Fix server location metadata refresh in multi-actions"

This reverts commit 4e89d98d4a.

Several unit tests are failing after this commit.
This commit is contained in:
Andrew Purtell 2019-02-05 14:01:37 -08:00
parent 48e8675728
commit 1acdec96cb
No known key found for this signature in database
GPG Key ID: 8597754DD5365CCD
1 changed files with 3 additions and 2 deletions

View File

@ -1256,7 +1256,7 @@ class AsyncProcess {
Retry canRetry = errorsByServer.canRetryMore(numAttempt)
? Retry.YES : Retry.NO_RETRIES_EXHAUSTED;
if (ClientExceptionsUtil.isMetaClearingException(t)) {
if (tableName == null && ClientExceptionsUtil.isMetaClearingException(t)) {
// tableName is null when we made a cross-table RPC call.
connection.clearCaches(server);
}
@ -1393,7 +1393,8 @@ class AsyncProcess {
for (Map.Entry<byte[], List<Action<Row>>> regionEntry : multiAction.actions.entrySet()) {
byte[] regionName = regionEntry.getKey();
Throwable regionException = responses.getExceptions().get(regionName);
if (ClientExceptionsUtil.isMetaClearingException(regionException)) {
if (tableName == null && regionException != null &&
ClientExceptionsUtil.isMetaClearingException(regionException)) {
// For multi-actions, we don't have a table name, but we want to make sure to clear the
// cache in case there were location-related exceptions. We don't to clear the cache
// for every possible exception that comes through, however.