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

Function PrintScheduleStateMemInfo

be/src/scheduling/admission-controller.cc:2479–2489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2477}
2478
2479static inline string PrintScheduleStateMemInfo(ScheduleState* state) {
2480 return Substitute("{per_backend_mem_limit=$0, per_backend_mem_to_admit=$1, "
2481 "per_backend_mem_to_admit_source=$2, coord_backend_mem_limit=$3, "
2482 "coord_backend_mem_to_admit=$4, coord_backend_mem_to_admit_source=$5}",
2483 PrintBytes(state->per_backend_mem_limit()),
2484 PrintBytes(state->per_backend_mem_to_admit()),
2485 MemLimitSourcePB_Name(state->per_backend_mem_to_admit_source()),
2486 PrintBytes(state->coord_backend_mem_limit()),
2487 PrintBytes(state->coord_backend_mem_to_admit()),
2488 MemLimitSourcePB_Name(state->coord_backend_mem_to_admit_source()));
2489}
2490
2491static inline bool IsReasonCoordinatorRemoved(const string& reason) {
2492 return reason.rfind(REASON_COORDINATOR_REMOVED_PREFIX, 0) == 0;

Callers 2

AdmitQueryMethod · 0.85

Calls 8

SubstituteFunction · 0.85
PrintBytesFunction · 0.85
per_backend_mem_limitMethod · 0.80

Tested by

no test coverage detected