From 6fef9eea65d7cd6de3277db1947dda6147a6c563 Mon Sep 17 00:00:00 2001 From: "Christopher L. Shannon (cshannon)" Date: Wed, 7 Oct 2015 11:53:57 +0000 Subject: [PATCH] Cleaning up logging Fixing one of the logging statements for the disk usage check process that warns when the amount of free space is too low --- .../main/java/org/apache/activemq/broker/BrokerService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java b/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java index 4a27fd07ca..f2e831f41f 100644 --- a/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java +++ b/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java @@ -2027,7 +2027,6 @@ public class BrokerService implements Service { String storeName = storeUsage instanceof StoreUsage ? "Store" : "Temporary Store"; long storeLimit = storeUsage.getLimit(); long storeCurrent = storeUsage.getUsage(); - long usableSpace = dir.getUsableSpace(); long totalSpace = dir.getTotalSpace(); long totalUsableSpace = dir.getUsableSpace() + storeCurrent; //compute byte value of the percent limit @@ -2067,7 +2066,7 @@ public class BrokerService implements Service { LOG.warn(storeName + " limit is " + storeLimit / oneMeg + " mb (current store usage is " + storeCurrent / oneMeg + " mb). The data directory: " + dir.getAbsolutePath() + - " only has " + usableSpace / oneMeg + + " only has " + totalUsableSpace / oneMeg + " mb of usable space - resetting to maximum available disk space: " + totalUsableSpace / oneMeg + " mb"); storeUsage.setLimit(totalUsableSpace);