You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2020/10/08 16:12:02 UTC

[hbase] branch branch-2 updated: HBASE-25165 Change 'State time' in UI so sorts (#2508)

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 d07d181  HBASE-25165 Change 'State time' in UI so sorts (#2508)
d07d181 is described below

commit d07d181ea4a9da316659bb21fd4fffc979b5f77a
Author: Michael Stack <sa...@users.noreply.github.com>
AuthorDate: Thu Oct 8 09:10:30 2020 -0700

    HBASE-25165 Change 'State time' in UI so sorts (#2508)
    
    Display startcode in iso8601.
    
    Signed-off-by: Nick Dimiduk <nd...@apache.org>
---
 .../org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl.jamon      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl.jamon
index a3067ee..5878361 100644
--- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl.jamon
+++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/RegionServerListTmpl.jamon
@@ -121,7 +121,7 @@ Arrays.sort(serverNames);
 </%java>
 <tr>
     <td><& serverNameLink; serverName=serverName; &></td>
-    <td><% new Date(startcode) %></td>
+    <td><% java.time.Instant.ofEpochMilli(startcode) %></td>
     <td><% TraditionalBinaryPrefix.long2String(lastContact, "s", 1) %></td>
     <td><% version %></td>
     <td><% String.format("%,.0f", requestsPerSecond) %></td>