activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cshan...@apache.org
Subject activemq git commit: Cleaning up logging
Date Wed, 07 Oct 2015 11:56:23 GMT
Repository: activemq
Updated Branches:
  refs/heads/master 816e8dfe5 -> 6fef9eea6


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


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/6fef9eea
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/6fef9eea
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/6fef9eea

Branch: refs/heads/master
Commit: 6fef9eea65d7cd6de3277db1947dda6147a6c563
Parents: 816e8df
Author: Christopher L. Shannon (cshannon) <christopher.l.shannon@gmail.com>
Authored: Wed Oct 7 11:53:57 2015 +0000
Committer: Christopher L. Shannon (cshannon) <christopher.l.shannon@gmail.com>
Committed: Wed Oct 7 11:55:20 2015 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/activemq/broker/BrokerService.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/6fef9eea/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java
----------------------------------------------------------------------
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 4a27fd0..f2e831f 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);


Mime
View raw message