[hornetq-commits] JBoss hornetq SVN: r9268 - trunk/src/main/org/hornetq/core/persistence/impl/journal.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed May 26 10:39:44 EDT 2010


Author: clebert.suconic at jboss.com
Date: 2010-05-26 10:39:44 -0400 (Wed, 26 May 2010)
New Revision: 9268

Modified:
   trunk/src/main/org/hornetq/core/persistence/impl/journal/JournalStorageManager.java
Log:
https://jira.jboss.org/browse/HORNETQ-394 - changing a critical error to a warning on update counts

Modified: trunk/src/main/org/hornetq/core/persistence/impl/journal/JournalStorageManager.java
===================================================================
--- trunk/src/main/org/hornetq/core/persistence/impl/journal/JournalStorageManager.java	2010-05-26 14:36:21 UTC (rev 9267)
+++ trunk/src/main/org/hornetq/core/persistence/impl/journal/JournalStorageManager.java	2010-05-26 14:39:44 UTC (rev 9268)
@@ -879,10 +879,12 @@
    
                   if (rec == null)
                   {
-                     throw new IllegalStateException("Cannot find message " + messageID);
+                     log.warn("Cannot find message "  + messageID + " to update delivery count");
                   }
-   
-                  rec.deliveryCount = encoding.count;
+                  else
+                  {
+                     rec.deliveryCount = encoding.count;
+                  }
                }
 
                break;



More information about the hornetq-commits mailing list