accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [accumulo] branch 2.0 updated: Fix #1230 INVALID date for GC on master monitor page
Date Tue, 25 Jun 2019 18:42:32 GMT
This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch 2.0
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/2.0 by this push:
     new bd370ca  Fix #1230 INVALID date for GC on master monitor page
bd370ca is described below

commit bd370ca0b33a76983e93a9662525c602735338c3
Author: Holly Keebler <holly.keebler@asrcfederal.com>
AuthorDate: Fri Jun 21 16:39:18 2019 -0400

    Fix #1230 INVALID date for GC on master monitor page
---
 .../resources/org/apache/accumulo/monitor/resources/js/master.js  | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/master.js
b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/master.js
index 28c88a6..0345fdf 100644
--- a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/master.js
+++ b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/master.js
@@ -108,10 +108,12 @@ function refreshMasterTable() {
 
     items.push(createRightCell(data.totalTabletServers,
         data.totalTabletServers));
+    var date = data.lastGC;
+    //this will be a finish time or a status of Running, Waiting, or down
+    if (!isNaN(date))
+        date = new Date(parseInt(data.lastGC)).toLocaleString().split(' ').join('&nbsp;');
 
-    var date = new Date(parseInt(data.lastGC));
-    date = date.toLocaleString().split(' ').join('&nbsp;');
-    items.push(createLeftCell(data.lasGC, '<a href="/gc">' + date + '</a>'));
+    items.push(createLeftCell(data.lastGC, '<a href="/gc">' + date + '</a>'));
 
     items.push(createRightCell(data.tablets,
         bigNumberForQuantity(data.tablets)));


Mime
View raw message