This is an automated email from the ASF dual-hosted git repository.

stack pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new 605240f  HBASE-24751 Display Task completion time and/or processing 
duration on Web UI (#2815)
605240f is described below

commit 605240f8a911109276d1eb8323bf411f571f21a1
Author: GeorryHuang <[email protected]>
AuthorDate: Sun Jan 3 03:22:36 2021 +0800

    HBASE-24751 Display Task completion time and/or processing duration on Web 
UI (#2815)
    
    Signed-off-by: stack <[email protected]>
---
 .../jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon     | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon
 
b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon
index f700d39..8d09027 100644
--- 
a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon
+++ 
b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon
@@ -105,6 +105,7 @@ String parent = "";
                       <th>Description</th>
                       <th>State</th>
                       <th>Status</th>
+                      <th>Completion Time</th>
                 </tr>
                 <%for MonitoredTask task : tasks %>
                     <tr class="<& stateCss; state = task.getState() &>">
@@ -116,6 +117,7 @@ String parent = "";
                       <td><% task.getStatus() %>
                           (since <% StringUtils.formatTimeDiff(now, 
task.getStatusTime()) %>
                           ago)</td>
+                      <td><% task.getCompletionTimestamp() < 0 ? 
task.getState() : new Date(task.getCompletionTimestamp()) %></td>
                     </tr>
                 </%for>
             </table>

Reply via email to