From 5e6539fec6ffeaa6afcc4d2d0824c78028756bc9 Mon Sep 17 00:00:00 2001 From: satishbhor Date: Fri, 12 May 2017 12:26:17 +0530 Subject: [PATCH] Average Server Percent Used: NaN% Error when server startup is in progress (fixes #4214) (#4240) * Fix lz4 library incompatibility in kafka-indexing-service extension #3266 * Bumped Kafka version to 0.10.2.0 for : Fix lz4 library incompatibility in kafka-indexing-service extension #3266 * Replaced Lists.newArrayList() with Collections.singletonList() For Fix lz4 library incompatibility in kafka-indexing-service extension #4115 * Fixed: Average Server Percent Used: NaN% Error when server startup is in progress #4214 --- .../main/resources/static/old-console/js/init-0.0.2.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/src/main/resources/static/old-console/js/init-0.0.2.js b/server/src/main/resources/static/old-console/js/init-0.0.2.js index c89ac19ce13..fc6b07f01c1 100644 --- a/server/src/main/resources/static/old-console/js/init-0.0.2.js +++ b/server/src/main/resources/static/old-console/js/init-0.0.2.js @@ -53,8 +53,12 @@ $(document).ready(function() { return ret; }()); var avg = serverTable.getColTotal('Server percentUsed') / serverTable.getNumRows(); - $('#avg_server_metric').html('Average Server Percent Used: ' + avg + '%'); - + if (!isNaN(avg)) { + $('#avg_server_metric').html('Average Server Percent Used: ' + avg + '%'); + }else{ + $('.loading').html('Server is still starting...Please try after few minutes.'); + $('.loading').show() + } serverTable.toHTMLTable($('#servers')); segmentTable.toHTMLTable($('#segments')); }