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

Method InitialReservations

be/src/runtime/initial-reservations.cc:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39namespace impala {
40
41InitialReservations::InitialReservations(ObjectPool* obj_pool,
42 ReservationTracker* query_reservation, MemTracker* query_mem_tracker,
43 int64_t initial_reservation_total_claims)
44 : initial_reservation_mem_tracker_(obj_pool->Add(
45 new MemTracker(-1, "Unclaimed reservations", query_mem_tracker, false))),
46 remaining_initial_reservation_claims_(initial_reservation_total_claims) {
47 // Soft mem_limits should not apply to the initial reservation because we don't want
48 // to fail the query in the case where the initial reservation exceeds the soft
49 // limit.
50 initial_reservations_.InitChildTracker(nullptr, query_reservation,
51 initial_reservation_mem_tracker_, numeric_limits<int64_t>::max(), MemLimit::HARD);
52}
53
54Status InitialReservations::Init(
55 const TUniqueId& query_id, int64_t query_min_reservation) {

Callers

nothing calls this directly

Calls 3

maxFunction · 0.85
InitChildTrackerMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected