Aleksandr Efimov has posted comments on this change. ( http://gerrit.cloudera.org:8080/24992 )
Change subject: IMPALA-15418: Add Bottleneck Summary to query profiles ...................................................................... Patch Set 5: (2 comments) 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: completion_time_ns >= 0 ? completion_time_ns : running_time_ns); > Cancellation before `Coordinator::Wait()` leaves `completion_time_ns_` unse In PS6, setting `completion_time_ns_` before stats finalization makes `UpdateExecStats()` skip `CompletionTime` and `ExecutionRate` on cancellation. A function-level check reproduces this in both profile formats; PS5 keeps the counters. Could we separate freezing from counter finalization and add a test? http://gerrit.cloudera.org:8080/#/c/24992/5/be/src/runtime/coordinator.cc File be/src/runtime/coordinator.cc: http://gerrit.cloudera.org:8080/#/c/24992/5/be/src/runtime/coordinator.cc@1914 PS5, Line 1914: if (node.exec_stats.empty()) continue; > `exec_stats` is preallocated, so `empty()` does not detect missing reports. Checked PS6: unreported nodes have no fraction and stay unranked at threshold 0. Thanks. -- 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: 5 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 07:45:35 +0000 Gerrit-HasComments: Yes
