From 9912d07d159b1cfdb319ffea7541665108738af9 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 24 Feb 2015 14:18:52 +0100 Subject: [PATCH] SONAR-5936 remove "Disk Usage" from ES info --- .../java/org/sonar/server/platform/monitoring/EsMonitor.java | 1 - .../java/org/sonar/server/platform/monitoring/EsMonitorTest.java | 1 - 2 files changed, 2 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsMonitor.java b/server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsMonitor.java index 98eb9c9bea9..743a5c11af7 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsMonitor.java +++ b/server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsMonitor.java @@ -101,7 +101,6 @@ public class EsMonitor extends BaseMonitorMBean implements EsMonitorMBean { NodeStats stats = entry.getValue(); nodeAttributes.put("Address", stats.getNode().getAddress().toString()); nodeAttributes.put("Type", stats.getNode().isMasterNode() ? "Master" : "Slave"); - nodeAttributes.put("Disk Usage", byteCountToDisplaySize(stats.getFs().getTotal().getTotal().bytes())); nodeAttributes.put("Disk Available", byteCountToDisplaySize(stats.getFs().getTotal().getAvailable().bytes())); nodeAttributes.put("Store Size", byteCountToDisplaySize(stats.getIndices().getStore().getSizeInBytes())); nodeAttributes.put("Open Files", stats.getProcess().getOpenFileDescriptors()); diff --git a/server/sonar-server/src/test/java/org/sonar/server/platform/monitoring/EsMonitorTest.java b/server/sonar-server/src/test/java/org/sonar/server/platform/monitoring/EsMonitorTest.java index b95584d1fb2..b633e5493d2 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/platform/monitoring/EsMonitorTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/platform/monitoring/EsMonitorTest.java @@ -62,7 +62,6 @@ public class EsMonitorTest { assertThat(nodesAttributes).hasSize(1); Map nodeAttributes = (Map)nodesAttributes.values().iterator().next(); assertThat(nodeAttributes.get("Type")).isEqualTo("Master"); - assertThat(nodeAttributes.get("Disk Usage")).isNotNull(); assertThat(nodeAttributes.get("Store Size")).isNotNull(); } -- 2.39.5