Jason Fehr has posted comments on this change. ( http://gerrit.cloudera.org:8080/25052 )
Change subject: IMPALA-15408: Don't ignore custom executor groups with default group ...................................................................... Patch Set 3: (2 comments) http://gerrit.cloudera.org:8080/#/c/25052/3/be/src/scheduling/cluster-membership-mgr.cc File be/src/scheduling/cluster-membership-mgr.cc: http://gerrit.cloudera.org:8080/#/c/25052/3/be/src/scheduling/cluster-membership-mgr.cc@781 PS3, Line 781: int num_custom_groups = 0; : for (const auto& it : snapshot->executor_groups) { : if (it.first != ImpalaServer::DEFAULT_EXECUTOR_GROUP_NAME) { : num_custom_groups++; : } : } Since the default_exists variable already indicates if there is a custom group or not, can this code be replaced with something like: int num_custom_groups = std::max(0, snapshot->executor_groups.size() - (default_exists ? 1 : 0)); http://gerrit.cloudera.org:8080/#/c/25052/3/be/src/scheduling/cluster-membership-mgr.cc@793 PS3, Line 793: custom_expected_sets.back().__set_expected_num_executors( Does this default executor set also need to call __set_curr_num_executors(0); -- To view, visit http://gerrit.cloudera.org:8080/25052 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I3ca59dff1d1e305985f98e640f64c483920e8178 Gerrit-Change-Number: 25052 Gerrit-PatchSet: 3 Gerrit-Owner: Yida Wu <[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]> Gerrit-Comment-Date: Mon, 19 Oct 2026 20:31:01 +0000 Gerrit-HasComments: Yes
