HBASE-24751 Display Task completion time and/or processing duration on Web UI (#2815)

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
GeorryHuang 2021-01-03 03:22:36 +08:00 committed by stack
parent d0221083ca
commit 605240f8a9
1 changed files with 2 additions and 0 deletions

View File

@ -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>