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

Method ReportRpcSizeWithWarning

be/src/runtime/coordinator.cc:1950–1961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1948}
1949
1950void Coordinator::ExecQueryRpcStats::ReportRpcSizeWithWarning(int64_t size,
1951 string&& warning_message) {
1952 ReportRpcSize(size);
1953 rpcs_above_warning_threshold_++;
1954 if (largest_rpc_warnings_.size() >= MAX_EXEC_RPC_WARNINGS) {
1955 // Compare to the smallest element and replace if bigger
1956 auto smallest = largest_rpc_warnings_.begin();
1957 if (smallest->first > size) return;
1958 largest_rpc_warnings_.erase(smallest);
1959 }
1960 largest_rpc_warnings_.emplace(size, warning_message);
1961}
1962
1963void Coordinator::ExecQueryRpcStats::PrintWarnings() {
1964 if (rpcs_above_warning_threshold_ == 0) return;

Callers 1

ExecAsyncMethod · 0.80

Calls 3

eraseMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected