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 abc27c6061
commit a2c99b133f
1 changed files with 5 additions and 1 deletions

View File

@ -93,7 +93,11 @@ public final class ClientExceptionsUtil {
if (cur == re) {
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();
} else {
return cur;