Abhishek Rawat has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/23257 )

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


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/23257/3/be/src/scheduling/admission-control-service.cc
File be/src/scheduling/admission-control-service.cc:

http://gerrit.cloudera.org:8080/#/c/23257/3/be/src/scheduling/admission-control-service.cc@215
PS3, Line 215:   if (admission_state->admission_done && 
!admission_state->admit_status.ok()) {
             :     LOG(INFO) << "Query " << req->query_id()
             :               << " was rejected. Removing admission state to 
free resources.";
             :     discard_result(admission_state_map_.Delete(req->query_id()));
             :   }
> Yeah, that’s a good point, retries after a failed rpc could hit an "invalid
This could be a future improvement since addressing the memory growth seems 
more critical. One option is that you could create a separate map to manage 
timed out queries and phase them out over a period of time.



--
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: comment
Gerrit-Change-Id: I9fba4f176c648ed7811225f7f94c91342a724d10
Gerrit-Change-Number: 23257
Gerrit-PatchSet: 3
Gerrit-Owner: Yida Wu <[email protected]>
Gerrit-Reviewer: Abhishek Rawat <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jason Fehr <[email protected]>
Gerrit-Reviewer: Riza Suminto <[email protected]>
Gerrit-Reviewer: Wenzhe Zhou <[email protected]>
Gerrit-Reviewer: Yida Wu <[email protected]>
Gerrit-Comment-Date: Wed, 06 Aug 2025 18:23:24 +0000
Gerrit-HasComments: Yes

Reply via email to