activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cshan...@apache.org
Subject activemq git commit: Improving disk usage log message
Date Wed, 14 Oct 2015 11:36:33 GMT
Repository: activemq
Updated Branches:
  refs/heads/master b5bfe2707 -> af09b4586


Improving disk usage log message

Improving the warning message for a percent disk usage check so it is
more clear what the original limit was set to and what the current
limit is being set to.


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

Branch: refs/heads/master
Commit: af09b4586ba87d15d82645232778389ce961fcce
Parents: b5bfe27
Author: Christopher L. Shannon (cshannon) <christopher.l.shannon@gmail.com>
Authored: Wed Oct 14 11:35:18 2015 +0000
Committer: Christopher L. Shannon (cshannon) <christopher.l.shannon@gmail.com>
Committed: Wed Oct 14 11:35:18 2015 +0000

----------------------------------------------------------------------
 .../main/java/org/apache/activemq/broker/BrokerService.java  | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/af09b458/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 f2e831f..cb38087 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
@@ -2057,10 +2057,12 @@ public class BrokerService implements Service {
             } else if (storeLimit > totalUsableSpace) {
                 if (percentLimit > 0) {
                     LOG.warn(storeName + " limit has been set to "
-                            + percentLimit + "% (" + storeLimit / oneMeg + " mb)"
+                            + percentLimit + "% (" + bytePercentLimit / oneMeg + " mb)"
                             + " of the partition size but there is not enough usable space."
-                            + " Only " + totalUsableSpace * 100 / totalSpace + "% (" + totalUsableSpace
/ oneMeg + " mb)"
-                            + " is available");
+                            + " The current store limit (which may have been adjusted by
a"
+                            + " previous usage limit check) is set to (" + storeLimit / oneMeg
+ " mb)"
+                            + " but only " + totalUsableSpace * 100 / totalSpace + "% ("
+ totalUsableSpace / oneMeg + " mb)"
+                            + " is available - resetting limit");
                 }
 
                 LOG.warn(storeName + " limit is " +  storeLimit / oneMeg +


Mime
View raw message