Arnab Karmakar has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/24992 )

Change subject: IMPALA-15418: Add Bottleneck Summary to query profiles
......................................................................


Patch Set 7:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/24992/5/be/src/runtime/coordinator-backend-state.cc
File be/src/runtime/coordinator-backend-state.cc:

http://gerrit.cloudera.org:8080/#/c/24992/5/be/src/runtime/coordinator-backend-state.cc@694
PS5, Line 694:       // Instance finished and UpdateExecStats() recorded 
completion.
> In PS6, setting `completion_time_ns_` before stats finalization makes `Upda
1. Split responsibilities in PS7 using two fields: frozen_elapsed_time_ns_ for 
freeze and completion_time_ns_ for UpdateExecStats only and added new test.

2. ComputeQuerySummary() — If !has_called_wait_, still run 
UpdateExecStats(fragment_stats_, finalize=true) on every backend, then return. 
Ensures profile counters finalize on cancel-before-Wait() via the normal 
terminal path (HandleExecStateTransition -> ComputeQuerySummary()).

3. ApplyExecStatusReport() - Replaced if (IsDoneLocked()) return false with if 
(reject_status_reports) return false, where reject_status_reports is 
finalized_.IsSet() from UpdateBackendExecStatus(). Backends marked done by 
cancel/error keep accepting status reports until query summary finalization; 
after finalized_, reports are rejected so the profile stays stable post-summary.



--
To view, visit http://gerrit.cloudera.org:8080/24992
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6d63cdb9dca24981054bf7c524c1bc3cd3167452
Gerrit-Change-Number: 24992
Gerrit-PatchSet: 7
Gerrit-Owner: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Kurt Deschler <[email protected]>
Gerrit-Reviewer: Wenzhe Zhou <[email protected]>
Gerrit-Comment-Date: Fri, 30 Oct 2026 10:08:55 +0000
Gerrit-HasComments: Yes

Reply via email to