Arnab Karmakar has posted comments on this change. ( https://gerrit.cloudera.org/24992 )
Change subject: IMPALA-15418: Add Bottleneck Summary to query profiles ...................................................................... Patch Set 9: (6 comments) Thanks for the comments! https://gerrit.cloudera.org/#/c/24992/7/be/src/runtime/coordinator-backend-state.h File be/src/runtime/coordinator-backend-state.h: https://gerrit.cloudera.org/#/c/24992/7/be/src/runtime/coordinator-backend-state.h@174 PS7, Line 174: /// with past behaviour, to avoid adding overhead. If 'finalize' is true, this is the > Make this function const if possible. You can make lock_ mutable if that is GetMaxInstanceElapsedTime() is now const. lock_ is mutable, which was the only thing blocking it. It now reads exec_start_time_ns_ after taking the lock. https://gerrit.cloudera.org/#/c/24992/7/be/src/runtime/coordinator-backend-state.h@331 PS7, Line 331: /// by the coordinator. > Does these need to be atomic? IIUC reading works on a copy and setting is u True, these are protected by BackendState::lock_. These are plain int64_t now. https://gerrit.cloudera.org/#/c/24992/7/be/src/runtime/coordinator.cc File be/src/runtime/coordinator.cc: https://gerrit.cloudera.org/#/c/24992/7/be/src/runtime/coordinator.cc@1416 PS7, Line 1416: } > Consolidate this with the identical loop below. Done https://gerrit.cloudera.org/#/c/24992/7/be/src/runtime/coordinator.cc@1417 PS7, Line 1417: > Is this fixing an existing issue? If so, please mention in the commit messa Before this change, cancel or error before the client called Wait() returned early from ComputeQuerySummary(). So the instances' CompletionTime and ExecutionRate counters were never finalized. Mentioned in the commit message too. https://gerrit.cloudera.org/#/c/24992/7/be/src/service/impala-server.cc File be/src/service/impala-server.cc: https://gerrit.cloudera.org/#/c/24992/7/be/src/service/impala-server.cc@1640 PS7, Line 1640: for (int i = 0; i < bottlenecks.size(); ++i) { > Move this out of the loop and re-use across calls with ss.clear(); ss.str(" Done https://gerrit.cloudera.org/#/c/24992/7/be/src/service/impala-server.cc@1641 PS7, Line 1641: pct_ss.clear(); > Change formatting to: setprecision(3) << setw(3) Done -- To view, visit https://gerrit.cloudera.org/24992 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I6d63cdb9dca24981054bf7c524c1bc3cd3167452 Gerrit-Change-Number: 24992 Gerrit-PatchSet: 9 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: Tue, 03 Nov 2026 03:35:24 +0000 Gerrit-HasComments: Yes
