You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/02/01 21:57:36 UTC

svn commit: r1239319 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java

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.");
+            }
         }
     }