Aleksandr Efimov has uploaded this change for review. ( 
https://gerrit.cloudera.org/25486


Change subject: IMPALA-15834: Wait for cancelled instance profiles
......................................................................

IMPALA-15834: Wait for cancelled instance profiles

After an early LIMIT, the first cancelled fragment instance can mark
its backend done while other instances are still closing. The
coordinator may finalize the query before their final profiles arrive.

For query-wide cancellation, count each completed instance and defer
the backend CANCELLED status until all instances have closed. Keep
immediate reporting for other execution errors and unexpected
cancellation.

Testing:
- QueryStateTest: 7 passed; cancellation reproduced on the parent.
- coordinator-backend-state-test: 17 passed.
- SQL LIMIT/OFFSET (3 runs), EOF, injected execution error, explicit
  cancellation and post-cancel health passed. All 32 sender profiles
  were complete for LIMIT/OFFSET and EOF, without a report delay.

Change-Id: I24d9ba1eed6616433e97c198952f7c3070449d34
Assisted-by: gpt-6.1-sol (Codex)
---
M be/src/runtime/CMakeLists.txt
A be/src/runtime/query-state-test.cc
M be/src/runtime/query-state.cc
M be/src/runtime/query-state.h
4 files changed, 214 insertions(+), 9 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I24d9ba1eed6616433e97c198952f7c3070449d34
Gerrit-Change-Number: 25486
Gerrit-PatchSet: 1
Gerrit-Owner: Aleksandr Efimov <[email protected]>

Reply via email to