kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [kudu] 02/02: tserver: expose the number of round trips for a scanner
Date Thu, 28 Nov 2019 02:20:22 GMT
This is an automated email from the ASF dual-hosted git repository.

adar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit 59c5efbbdaf77e2d3767d6631180bf0cb558575f
Author: helifu <hzhelifu@corp.netease.com>
AuthorDate: Wed Nov 27 15:16:56 2019 +0800

    tserver: expose the number of round trips for a scanner
    
    Change-Id: Ia596049c156be5f79e55ac7082488ba1ba462441
    Reviewed-on: http://gerrit.cloudera.org:8080/14803
    Tested-by: Kudu Jenkins
    Reviewed-by: Adar Dembo <adar@cloudera.com>
---
 src/kudu/tserver/tserver_path_handlers.cc | 1 +
 www/scans.mustache                        | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/src/kudu/tserver/tserver_path_handlers.cc b/src/kudu/tserver/tserver_path_handlers.cc
index d1c35bf..5ccc41f 100644
--- a/src/kudu/tserver/tserver_path_handlers.cc
+++ b/src/kudu/tserver/tserver_path_handlers.cc
@@ -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()));
 
diff --git a/www/scans.mustache b/www/scans.mustache
index 4e97978..6e6cb67 100644
--- a/www/scans.mustache
+++ b/www/scans.mustache
@@ -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>
@@ -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>
 


Mime
View raw message