You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/04/29 10:00:28 UTC

[GitHub] [accumulo] milleruntime commented on a diff in pull request #2663: Highlight rows with recovering tservers in the tserver status table

milleruntime commented on code in PR #2663:
URL: https://github.com/apache/accumulo/pull/2663#discussion_r861663750


##########
server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/tservers.js:
##########
@@ -161,8 +161,39 @@ function clearDeadTServers(server) {
 }
 
 /**
- * Generates the tserver table
+ * Generates the tserver table and highlights rows that have recovering tservers
  */
 function refreshTServersTable() {
-  if(tserversList) tserversList.ajax.reload(null, false ); // user paging is not reset on reload
+  if (tserversList) tserversList.ajax.reload(null, false); // user paging is not reset on reload
+
+  getRecoveryList().then(function () {
+
+    // reset background for all rows
+    const table = $('#tservers').DataTable();
+    table.rows().every(function (index) {
+      $(table.row(index).node()).css('background-color', '');
+    });
+
+    const recoveryList = []
+    JSON.parse(sessionStorage.recoveryList).recoveryList.forEach(entry => {
+      recoveryList.push(entry.server);
+    });
+
+    if (recoveryList.length === 0) {
+      $('#recovery-caption').text('');

Review Comment:
   You may need to hide the span as well if you don't want to see the blank space.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org