This is an automated email from the ASF dual-hosted git repository.
DomGarguilo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push:
new 45850651be Fix Scan Server Status Icon colors in 4.0.0 Monitor (#6581)
45850651be is described below
commit 45850651be6e411929bc0e4e2a3e11fc68f41dd1
Author: Amanda Villarreal <[email protected]>
AuthorDate: Fri Oct 16 11:26:28 2026 -0500
Fix Scan Server Status Icon colors in 4.0.0 Monitor (#6581)
* add to existing condition to allow scan serves to be 0/0
---
.../resources/org/apache/accumulo/monitor/resources/js/functions.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/functions.js
b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/functions.js
index bbe619a5c0..832948f6bf 100644
---
a/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/functions.js
+++
b/server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/functions.js
@@ -578,9 +578,11 @@ function getComponentStatus(statusData, componentType) {
if (!statusData || !statusData.componentStatuses) {
return 'ERROR';
}
+
+ const status = statusData.componentStatuses[componentType];
- var status = statusData.componentStatuses[componentType];
- if (!status || !status.hasServers) {
+ // scan servers are optional, so having none is not an error
+ if (!status || (!status.hasServers && componentType !== 'SCAN_SERVER')) {
return 'ERROR';
}