HBASE-15390 Unnecessary MetaCache evictions cause elevated number of requests to meta (ADDENDUM)

This commit is contained in:
Mikhail Antonov 2016-03-17 01:06:42 -07:00
parent a06994bbc1
commit a317a0f89c
1 changed files with 5 additions and 1 deletions

View File

@ -93,7 +93,11 @@ public final class ClientExceptionsUtil {
if (cur == re) { if (cur == re) {
return cur; return cur;
} }
} else if (cur.getCause() != null) {
// When we receive RemoteException which wraps IOException which has a cause as
// RemoteException we can get into infinite loop here; so if the cause of the exception
// is RemoteException, we shouldn't look further.
} else if (cur.getCause() != null && !(cur.getCause() instanceof RemoteException)) {
cur = cur.getCause(); cur = cur.getCause();
} else { } else {
return cur; return cur;