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

Method wait_time_ms

be/src/service/client-request-state.h:423–432  ·  view source on GitHub ↗

Returns duration of the query is waiting in the queue.

Source from the content-addressed store, hash-verified

421
422 /// Returns duration of the query is waiting in the queue.
423 int64_t wait_time_ms() const {
424 // wait_start_time_ms_ is zero iff the query is not require queuing.
425 if (wait_start_time_ms_ == 0) return 0;
426 // wait_end_time_ms_ might still be zero if the query is not yet dequeue.
427 // Use the current Unix time in that case. Note that the duration can be
428 // negative if a system clock reset happened after the query was initiated.
429 int64_t wait_end_time_ms = wait_end_time_ms_ > 0LL ?
430 wait_end_time_ms_ : MonotonicMillis();
431 return wait_end_time_ms - wait_start_time_ms_;
432 }
433
434 /// Returns the time taken for the client to fetch all rows.
435 int64_t client_fetch_wait_time_ns() const {

Callers 1

InitMethod · 0.80

Calls 1

MonotonicMillisFunction · 0.85

Tested by

no test coverage detected