Skip to content

Commit

Permalink
tserver: expose the number of round trips for a scanner
Browse files Browse the repository at this point in the history
Change-Id: Ia596049c156be5f79e55ac7082488ba1ba462441
Reviewed-on: http://gerrit.cloudera.org:8080/14803
Tested-by: Kudu Jenkins
Reviewed-by: Adar Dembo <[email protected]>
  • Loading branch information
helifu authored and adembo committed Nov 28, 2019
1 parent 7c5455a commit 59c5efb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/kudu/tserver/tserver_path_handlers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ void ScanToJson(const ScanDescriptor& scan, EasyJson* json) {
json->Set("requestor", scan.remote_user.username());

json->Set("duration", HumanReadableElapsedTime::ToShortString(duration.ToSeconds()));
json->Set("num_round_trips", scan.last_call_seq_id);
json->Set("time_since_start",
HumanReadableElapsedTime::ToShortString(time_since_start.ToSeconds()));

Expand Down
2 changes: 2 additions & 0 deletions www/scans.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ under the License.
<th title="pseudo-SQL query description">Query</th>
<th>Requestor</th>
<th title="amount of time that the scanner was/has been open on the server">Duration</th>
<th title="number of round trips">Round trips</th>
<th title="elapsed time since the scan started">Time since start</th>
<th title="{{timing_title}}">Timing</th>
<th>Column Stats</th>
Expand All @@ -42,6 +43,7 @@ under the License.
<td><pre>{{{query}}}</pre></td>
<td><samp>{{requestor}}</samp></td>
<td title="{{duration_title}}">{{duration}}</td>
<td>{{num_round_trips}}</td>
<td title="{{time_since_start_title}}">{{time_since_start}}</td>
<td>real: {{wall_secs}} user: {{user_secs}} sys: {{sys_secs}}</td>
Expand Down

0 comments on commit 59c5efb

Please sign in to comment.