in src/hbase/exceptions/exception.cc [99:111]
bool ExceptionUtil::IsScannerClosed(const folly::exception_wrapper& exception) {
bool scanner_closed = false;
exception.with_exception([&](const RemoteException& remote_ex) {
auto java_class = remote_ex.exception_class_name();
if (java_class == kUnknownScannerException || java_class == kNotServingRegionException ||
java_class == kRegionInRecoveryException || java_class == kRegionOpeningException ||
java_class == kRegionMovedException || java_class == kRegionServerStoppedException ||
java_class == kRegionServerAbortedException) {
scanner_closed = true;
}
});
return scanner_closed;
}