Hello Joe McDonnell, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/25096

to look at the new patch set (#2).

Change subject: PROTOTYPE IMPALA-15677: Return eos before waiting for the final 
backend reports
......................................................................

PROTOTYPE IMPALA-15677: Return eos before waiting for the final backend reports

When the last row of a query is fetched, the coordinator cancels the
backends, waits for their final status reports, releases admission
control resources and computes the query summary before the fetch
returns eos. The wait grows with the instance count: 211 ms for the
2,488 fragment instances of TPC-DS q77 at SF3000.

With --async_query_finalization (default true), this work moves to a
separate thread for queries; Cancel(wait_until_finalized=true) and the
Coordinator destructor wait for it. Open points: a client that fetches
the profile right after eos must still get the complete profile, and
admission resources are now released after the client sees eos.

Testing:
- TPC-DS SF3000, 8 executors, MT_DOP=8, PLANNER=CALCITE,
  CTE_THRESHOLD=1, on top of other prototypes: 103 queries 590.1 s ->
  579.3 s (geomean 0.962), short queries 7% faster, same results.
  No new tests.

Change-Id: Ib7f5317521b0957b7247fbbdefc4e8bca5bf440a
Assisted-by: Claude Opus 5.5 (Claude Code)
---
M be/src/runtime/coordinator.cc
M be/src/runtime/coordinator.h
2 files changed, 32 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/96/25096/2
--
To view, visit http://gerrit.cloudera.org:8080/25096
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib7f5317521b0957b7247fbbdefc4e8bca5bf440a
Gerrit-Change-Number: 25096
Gerrit-PatchSet: 2
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>

Reply via email to