Anubhav Jindal has posted comments on this change. ( 
https://gerrit.cloudera.org/25364 )

Change subject: IMPALA-15612: Keep root user loads current between statestore 
updates
......................................................................


Patch Set 2:

(2 comments)

https://gerrit.cloudera.org/#/c/25364/1/be/src/scheduling/admission-controller.cc
File be/src/scheduling/admission-controller.cc:

https://gerrit.cloudera.org/#/c/25364/1/be/src/scheduling/admission-controller.cc@933
PS1, Line 933:   parent_->root_agg_user_loads_.increment(user);
> Tracing through the code, it appears as though `admission_ctrl_lock_` is no
I checked the callers, and I think the lock is always held. The calls come from 
SubmitForAdmission() (inside the lock_guard) and from TryDequeue() (which runs 
with the lock held by DequeueLoop()). Only the unit tests call it without the 
lock. I added "Must hold admission_ctrl_lock_" to the header comment in PS2. 
Let me know if I missed a path.


https://gerrit.cloudera.org/#/c/25364/1/be/src/scheduling/admission-controller.cc@941
PS1, Line 941:   parent_->root_agg_user_loads_.decrement(user);
> Tracing through the code, it appears as though `admission_ctrl_lock_` is no
Same here. The callers are AdmissionController::ReleaseQuery(), WaitOnQueued() 
and TryDequeue(), and all of them hold the lock. I documented this in the 
header in PS2 too.



--
To view, visit https://gerrit.cloudera.org/25364
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia1461f24762d5aa7e0f23991eea5a25da604a1d9
Gerrit-Change-Number: 25364
Gerrit-PatchSet: 2
Gerrit-Owner: Anubhav Jindal <[email protected]>
Gerrit-Reviewer: Anubhav Jindal <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jason Fehr <[email protected]>
Gerrit-Comment-Date: Mon, 16 Nov 2026 21:50:51 +0000
Gerrit-HasComments: Yes

Reply via email to