Impala Public Jenkins has submitted this change and it was merged. ( https://gerrit.cloudera.org/25364 )
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) Reviewed-on: https://gerrit.cloudera.org/25364 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- 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(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- 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: merged Gerrit-Change-Id: Ia1461f24762d5aa7e0f23991eea5a25da604a1d9 Gerrit-Change-Number: 25364 Gerrit-PatchSet: 6 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]>
