activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1239319 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
Date Wed, 01 Feb 2012 20:57:36 GMT
Author: tabish
Date: Wed Feb  1 20:57:36 2012
New Revision: 1239319

URL: http://svn.apache.org/viewvc?rev=1239319&view=rev
Log:
Additional Fix for https://issues.apache.org/jira/browse/AMQ-3573 - Add check for improperly
configured temp store limits 

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java?rev=1239319&r1=1239318&r2=1239319&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
Wed Feb  1 20:57:36 2012
@@ -1722,6 +1722,14 @@ public class BrokerService implements Se
                           " mb, whilst the temporary data directory: " + tmpDirPath +
                           " only has " + dirFreeSpace / (1024 * 1024) + " mb of free space");
             }
+
+            long maxJournalFileSize = usage.getTempUsage().getStore().getJournalMaxFileLength();
+            if (storeLimit < maxJournalFileSize) {
+                LOG.error("Temporary Store limit is " + storeLimit / (1024 * 1024) +
+                          " mb, whilst the max journal file size for the temporary store
is: " +
+                          maxJournalFileSize / (1024 * 1024) + " mb, " +
+                          "the temp store will not accept any data when used.");
+            }
         }
     }
 



Mime
View raw message