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 GitHub
parent 126d01dae3
commit 8b9a074bf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>