Hello Gokul Kolady, Yida Wu, Jason Fehr, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
https://gerrit.cloudera.org/25364
to look at the new patch set (#3).
Change subject: IMPALA-15612: Keep root user loads current between statestore
updates
......................................................................
IMPALA-15612: Keep root user loads current between statestore updates
User and group quotas in the root pool were checked against
root_agg_user_loads_, which was only recomputed from the per-pool
aggregates in UpdateClusterAggregates() on statestore updates. Unlike
the per-pool aggregates, it was not updated when a query was admitted,
queued, or released locally. Queries submitted in quick succession
therefore all saw the same stale root load and could exceed a root
level limit. For example, with a root limit of 2 for userA, three
queries could be admitted, and only the fourth was rejected with
"current per-user load 3 ... is at or above the user limit 2 in pool
'root'".
PoolStats::IncrementPerUser() and PoolStats::DecrementPerUser() now
also update root_agg_user_loads_, keeping it equal to the sum of the
per-pool aggregates between statestore updates. In debug builds,
UpdateClusterAggregates() now DCHECKs that invariant before it
recomputes the aggregates, so a bug in the incremental updates fails
loudly.
Testing:
- Added AdmissionControllerTest.RootQuotaWithLocalAdmissions, which
fails without the fix.
- Ran be/build/debug/scheduling/admission-controller-test.
- Ran bin/impala-py.test tests/custom_cluster/test_executor_groups.py
-k quota
- Ran bin/impala-py.test tests/custom_cluster/test_admission_controller.py
-k 'user_loads or quota_configs'
Change-Id: Ia1461f24762d5aa7e0f23991eea5a25da604a1d9
Assisted-by: Claude Opus 5.5 (Cursor)
---
M be/src/scheduling/admission-controller-test.cc
M be/src/scheduling/admission-controller.cc
M be/src/scheduling/admission-controller.h
3 files changed, 86 insertions(+), 3 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/64/25364/3
--
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: newpatchset
Gerrit-Change-Id: Ia1461f24762d5aa7e0f23991eea5a25da604a1d9
Gerrit-Change-Number: 25364
Gerrit-PatchSet: 3
Gerrit-Owner: Anubhav Jindal <[email protected]>
Gerrit-Reviewer: Anubhav Jindal <[email protected]>
Gerrit-Reviewer: Gokul Kolady <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jason Fehr <[email protected]>
Gerrit-Reviewer: Yida Wu <[email protected]>