Impala Public Jenkins has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/24965 )

Change subject: IMPALA-13965: Enforce quotas without executors
......................................................................

IMPALA-13965: Enforce quotas without executors

Admission could return early when no executor group was available.

That skipped quota rejection on submission and let queued requests
overflow user and group limits until executors came online. This change
enforces quota in the empty-group path and tracks queued-load ownership
so reject, timeout, and cancel paths decrement exactly once.

Adds regression coverage in admission-controller unit tests and
custom-cluster executor-group tests for no-executor quota enforcement
and queued-timeout cleanup for explicit user, wildcard user, and group
quotas.

Queue timeout precedence matters here: pool-level
impala.admission-control.pool-queue-timeout-ms overrides
queue_wait_timeout_ms. To avoid changing shared
llama-site-test2.xml behavior, this change adds two dedicated files:
llama-site-test2-long-timeout.xml and
llama-site-test2-short-timeout.xml. Both are copies of
llama-site-test2.xml, and only differ on queueD/queueE timeout values
(60000 in long-timeout, 2000 in short-timeout).

Also add explicit asserts on wait_for_finished_timeout() return values
in the no-executor tests.

Testing:
- python3 bin/jenkins/critique-gerrit-review.py --dryrun
- On Linux worktree IMPALA-13965-comments:
  - bin/impala-py.test tests/custom_cluster/test_executor_groups.py -k
    'user_quota_applies_without_executors or
     wildcard_user_quota_applies_without_executors or
     group_quota_applies_without_executors or
     timed_out_queue_releases_user_quota or
     timed_out_queue_releases_group_quota or
     timed_out_queue_releases_wildcard_user_quota'

Change-Id: I84024a8d11911b639679029e34445ca52902ab93
Assisted-by: GPT-5.3 (Cursor)
Reviewed-on: http://gerrit.cloudera.org:8080/24965
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
A fe/src/test/resources/llama-site-test2-long-timeout.xml
A fe/src/test/resources/llama-site-test2-short-timeout.xml
M tests/custom_cluster/test_executor_groups.py
6 files changed, 495 insertions(+), 5 deletions(-)

Approvals:
  Impala Public Jenkins: Looks good to me, approved; Verified

--
To view, visit http://gerrit.cloudera.org:8080/24965
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I84024a8d11911b639679029e34445ca52902ab93
Gerrit-Change-Number: 24965
Gerrit-PatchSet: 15
Gerrit-Owner: Anubhav Jindal <[email protected]>
Gerrit-Reviewer: Abhishek Rawat <[email protected]>
Gerrit-Reviewer: Anubhav Jindal <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jason Fehr <[email protected]>
Gerrit-Reviewer: Yida Wu <[email protected]>

Reply via email to