Hello 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 (#2).
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.
Testing:
- Added AdmissionControllerTest.RootQuotaWithLocalAdmissions, which
fails without the fix.
- Added test_root_user_quota_applies_to_back_to_back_queries to
test_executor_groups.py, which fails without the fix (the third
query is queued instead of rejected).
- Ran be/build/debug/scheduling/admission-controller-test.
- Ran bin/impala-py.test tests/custom_cluster/test_executor_groups.py
-k quota
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
M tests/custom_cluster/test_executor_groups.py
4 files changed, 114 insertions(+), 3 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/64/25364/2
--
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: 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]>