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


##########
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:
   Addressed in 
[0ddc643](https://github.com/apache/accumulo/pull/2663/commits/0ddc643adcd20c1133da6c48e51e6c0a3729c298)



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to