Zoltan Borok-Nagy has uploaded this change for review. ( 
https://gerrit.cloudera.org/25581


Change subject: PROTOTYPE IMPALA-15857: Fix CPC planning in a coordinator-only 
request pool
......................................................................

PROTOTYPE IMPALA-15857: Fix CPC planning in a coordinator-only request pool

When REQUEST_POOL names a pool whose queries only run on coordinators,
the Frontend plans with a single executor group set that has no
executors. With COMPUTE_PROCESSING_COST=true it then divided the
total cores of that group set, 0, by its executor count, 0, and the
query failed with "ArithmeticException: / by zero".

The division now uses at least one executor. Such a group set reports
no cores, so the plan uses PROCESSING_COST_MIN_THREADS instances per
node, as the planner already does for other group sets with too few
cores.

This is part of a series of COMPUTE_PROCESSING_COST (CPC) costing
prototypes. The last one (IMPALA-15841) has the measured effect of the
series.

Testing:
- New CoordinatorOnlyPoolTest plans in the pool of
  fair-scheduler-onlycoords.xml with and without CPC; the CPC case
  fails without the fix.

Change-Id: Ide6c84714d61b42ead3a9ec0d39b7c5cdfe217c7
Assisted-by: Claude Opus 5.5 (Claude Code)
---
M fe/src/main/java/org/apache/impala/service/Frontend.java
A fe/src/test/java/org/apache/impala/planner/CoordinatorOnlyPoolTest.java
2 files changed, 112 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/81/25581/1
--
To view, visit https://gerrit.cloudera.org/25581
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ide6c84714d61b42ead3a9ec0d39b7c5cdfe217c7
Gerrit-Change-Number: 25581
Gerrit-PatchSet: 1
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>

Reply via email to