Kurt Deschler has posted comments on this change. ( 
https://gerrit.cloudera.org/24992 )

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


Patch Set 7:

(6 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:   int64_t GetMaxInstanceElapsedTime(int64_t now_ns);
Make this function const if possible. You can make lock_ mutable if that is all 
that is preventing it.


https://gerrit.cloudera.org/#/c/24992/7/be/src/runtime/coordinator-backend-state.h@331
PS7, Line 331:     AtomicInt64 completion_time_ns_{-1};
Does these need to be atomic? IIUC reading works on a copy and setting is under 
lock protected by barrier?


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:     for (BackendState* backend_state : backend_states_) {
Consolidate this with the identical loop below.


https://gerrit.cloudera.org/#/c/24992/7/be/src/runtime/coordinator.cc@1417
PS7, Line 1417:       backend_state->UpdateExecStats(fragment_stats_, 
/*finalize=*/true);
Is this fixing an existing issue? If so, please mention in the commit message.


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:       stringstream pct_ss;
Move this out of the loop and re-use across calls with ss.clear(); ss.str("");


https://gerrit.cloudera.org/#/c/24992/7/be/src/service/impala-server.cc@1641
PS7, Line 1641:       pct_ss << fixed << setprecision(3) << 
bottlenecks[i].query_time_frac * 100;
Change formatting to: setprecision(3) << setw(3)



--
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: 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: Tue, 03 Nov 2026 01:59:06 +0000
Gerrit-HasComments: Yes

Reply via email to