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 4:

(8 comments)

Thanks for the comments! There's been a change in how the bottleneck summary is 
computed. Earlier we were doing it once the query ended but now the summary is 
available for long running queries as well, where node times are as of the last 
status report, and keeps it up to date on every request.

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

http://gerrit.cloudera.org:8080/#/c/24992/3/be/src/runtime/coordinator-backend-state.h@171
PS3, Line 171:   /// completion time if it has been set, otherwise the time 
since the instances were
> Declare as const
Done


http://gerrit.cloudera.org:8080/#/c/24992/3/be/src/runtime/coordinator.cc
File be/src/runtime/coordinator.cc:

http://gerrit.cloudera.org:8080/#/c/24992/3/be/src/runtime/coordinator.cc@1428
PS3, Line 1428:   stringstream mem_info, cpu_user_info, cpu_system_info, 
bytes_read_info;
> const BackendState*
Done


http://gerrit.cloudera.org:8080/#/c/24992/3/be/src/runtime/coordinator.cc@1430
PS3, Line 1430:   BackendMachineInfoAggregator machine_info_aggregator;
> Does using completion time prevent this from being used on a running query?
Ive reworked it and the Bottleneck Summary now works for running queries too. 
An instance that hasn't finished uses the time since its backend started, from 
a new atomic exec_start_time_ns_ set when the exec RPC succeeds.


http://gerrit.cloudera.org:8080/#/c/24992/3/be/src/util/summary-util.h
File be/src/util/summary-util.h:

http://gerrit.cloudera.org:8080/#/c/24992/3/be/src/util/summary-util.h@47
PS3, Line 47:
> These defaults seem to be here to facilitate tests but the actual code alwa
SetQueryTimeFractions() moved out of summary-util.cc and is now a private 
static on Coordinator.


http://gerrit.cloudera.org:8080/#/c/24992/3/be/src/util/summary-util.h@52
PS3, Line 52:
> Declare this function static or make it a member of RuntimeProfile
Done


http://gerrit.cloudera.org:8080/#/c/24992/3/be/src/util/summary-util.cc
File be/src/util/summary-util.cc:

http://gerrit.cloudera.org:8080/#/c/24992/3/be/src/util/summary-util.cc@150
PS3, Line 150:
> This seems awkward having a function here that is updating the exec_summary
Moved it to coordinator.cc


http://gerrit.cloudera.org:8080/#/c/24992/3/be/src/util/summary-util.cc@159
PS3, Line 159:
> Could use boost::container::small_vector here to avoid memory allocations.
Done


http://gerrit.cloudera.org:8080/#/c/24992/3/be/src/util/summary-util.cc@183
PS3, Line 183:
> This was already reserved to BOTTLENECK_MAX_ENTRIES outside of the lock
Kept this one here as reserve(BOTTLENECK_MAX_ENTRIES) is now removed.



--
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: 4
Gerrit-Owner: Arnab Karmakar <[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, 27 Oct 2026 17:29:28 +0000
Gerrit-HasComments: Yes

Reply via email to