Yida Wu has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/23257


Change subject: IMPALA-14276: Fix memory leak by removing AdmissionState on 
rejection
......................................................................

IMPALA-14276: Fix memory leak by removing AdmissionState on rejection

Normally, AdmissionState entries in admissiond are cleaned up when
a query is released. However, for requests that are rejected,
releasing query is not called, and their AdmissionState was not
removed from admission_state_map_ resulting in a memory leak over
time.

This leak was less noticeable because AdmissionState entries were
relatively small. However, when admissiond is run as a standalone
process, each AdmissionState includes a profile sidecar, which
can be large, making the leak much more.

This change adds logic to remove AdmissionState entries when the
admission request is rejected.

Testing:
Add test_admission_state_map_mem_leak for regression test.

Change-Id: I9fba4f176c648ed7811225f7f94c91342a724d10
---
M be/src/scheduling/admission-control-service.cc
M tests/custom_cluster/test_admission_controller.py
2 files changed, 70 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/57/23257/2
--
To view, visit http://gerrit.cloudera.org:8080/23257
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9fba4f176c648ed7811225f7f94c91342a724d10
Gerrit-Change-Number: 23257
Gerrit-PatchSet: 2
Gerrit-Owner: Yida Wu <[email protected]>

Reply via email to