MCPcopy Create free account
hub / github.com/apache/impala / IsReadTimeoutTException

Function IsReadTimeoutTException

be/src/rpc/thrift-util.cc:296–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296bool IsReadTimeoutTException(const TTransportException& e) {
297 // String taken from TSocket::read() Thrift's TSocket.cpp and TSSLSocket.cpp.
298 // Specifically, "THRIFT_EAGAIN (timed out)" from TSocket.cpp,
299 // and "THRIFT_POLL (timed out)" from TSSLSocket.cpp.
300 return (e.getType() == TTransportException::TIMED_OUT
301 && strstr(e.what(), "(timed out)") != nullptr);
302}
303
304bool IsPeekTimeoutTException(const TTransportException& e) {
305 // String taken from TSocket::peek() Thrift's TSocket.cpp and TSSLSocket.cpp.

Callers 3

PeekMethod · 0.85
DoRpcMethod · 0.85
RetryRpcRecvMethod · 0.85

Calls 1

getTypeMethod · 0.65

Tested by

no test coverage detected