Anubhav Jindal 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 3:

(3 comments)

https://gerrit.cloudera.org/#/c/25364/1/be/src/scheduling/admission-controller.cc
File be/src/scheduling/admission-controller.cc:

https://gerrit.cloudera.org/#/c/25364/1/be/src/scheduling/admission-controller.cc@933
PS1, Line 933:   parent_->root_agg_user_loads_.increment(user);
> Withdrawn.  I checked again and could not find any path where that lock is
Ack


https://gerrit.cloudera.org/#/c/25364/1/be/src/scheduling/admission-controller.cc@941
PS1, Line 941:   parent_->root_agg_user_loads_.decrement(user);
> Withdrawn.  I checked again and confirmed all paths do indeed hold admissio
Ack


https://gerrit.cloudera.org/#/c/25364/3/be/src/scheduling/admission-controller.cc
File be/src/scheduling/admission-controller.cc:

https://gerrit.cloudera.org/#/c/25364/3/be/src/scheduling/admission-controller.cc@2334
PS3, Line 2334: #ifndef NDEBUG
              :   // Between statestore updates root_agg_user_loads_ is 
maintained incrementally by
              :   // PoolStats::IncrementPerUser() and 
PoolStats::DecrementPerUser(), so it must still
              :   // equal the sum of the per-pool aggregates before they are 
recomputed below.
              :   AggregatedUserLoads expected_root_loads;
              :   for (auto& entry : pool_stats_) {
              :     expected_root_loads.add_loads(
              :         
entry.second.get_aggregated_user_loads().get_user_loads());
              :   }
              :   DCHECK(expected_root_loads.get_user_loads() == 
root_agg_user_loads_.get_user_loads())
              :       << "expected: " << expected_root_loads.DebugString()
              :       << " actual: " << root_agg_user_loads_.DebugString();
              : #endif
> Has this code been run through ASAN/TSAN/UBSAN builds?  Those builds run a
Yes, I ran all three locally. The unit test passes under ASAN, TSAN and UBSAN. 
The executor-group and admission-controller quota tests pass under ASAN and 
UBSAN with no reports. Under TSAN those custom cluster tests crash on startup 
in Kudu RPC, but that happens on master without this patch too. This change 
shouldn't be timing-sensitive: the counters and the DCHECK all run under 
admission_ctrl_lock_, the unit test is deterministic, and I removed the racy 
E2E test in PS3.



--
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: 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]>
Gerrit-Comment-Date: Mon, 23 Nov 2026 23:12:49 +0000
Gerrit-HasComments: Yes

Reply via email to