Gokul Kolady 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: (3 comments) https://gerrit.cloudera.org/#/c/25364/2/be/src/scheduling/admission-controller-test.cc File be/src/scheduling/admission-controller-test.cc: https://gerrit.cloudera.org/#/c/25364/2/be/src/scheduling/admission-controller-test.cc@1147 PS2, Line 1147: TPoolConfig config_large; config_large is unused - CanAdmitQuota() is only ever called with config_small/config_root here. We should drop it along with the GetPoolConfig(QUEUE_LARGE, ...) call. https://gerrit.cloudera.org/#/c/25364/2/be/src/scheduling/admission-controller.cc File be/src/scheduling/admission-controller.cc: https://gerrit.cloudera.org/#/c/25364/2/be/src/scheduling/admission-controller.cc@933 PS2, Line 933: parent_->root_agg_user_loads_.increment(user); root_agg_user_loads_ now has two independent maintainers: this incremental path and the full recompute in UpdateClusterAggregates(). Any future drift between them would silently mis-admit queries. Since that function already rebuilds the map from the per-pool aggregates, we should consider saving the old value before the clear() there and DCHECKing it matches the rebuilt one, so an incremental-path bug fails loudly in debug builds. https://gerrit.cloudera.org/#/c/25364/2/tests/custom_cluster/test_executor_groups.py File tests/custom_cluster/test_executor_groups.py: https://gerrit.cloudera.org/#/c/25364/2/tests/custom_cluster/test_executor_groups.py@403 PS2, Line 403: result = self.execute_query_expect_failure(clients[2], TEST_QUERY) This looks racy. execute_async() returns before admission runs (ExecQueryOrDmlRequest is called with async=true), so query 3 can reach admission first, get queued, and sit there for the full 60s queueD timeout while one of queries 1/2 is rejected instead. And the "no statestore update in between" precondition isn't pinned: the recompute is driven by statestore_update_frequency_ms (default 2000ms), not the heartbeat flag set here, so an update landing in between makes this pass without the fix. We should either wait for the first two to be counted plus pinning -statestore_update_frequency_ms, or drop this - RootQuotaWithLocalAdmissions covers the fix deterministically and test_user_quota_applies_without_executors already hits the same root rule. -- 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: Gokul Kolady <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Jason Fehr <[email protected]> Gerrit-Reviewer: Yida Wu <[email protected]> Gerrit-Comment-Date: Thu, 19 Nov 2026 17:41:17 +0000 Gerrit-HasComments: Yes
