[hornetq-commits] JBoss hornetq SVN: r10305 - branches/Branch_2_2_EAP/src/main/org/hornetq/core/journal/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Mar 8 10:07:52 EST 2011


Author: clebert.suconic at jboss.com
Date: 2011-03-08 10:07:51 -0500 (Tue, 08 Mar 2011)
New Revision: 10305

Modified:
   branches/Branch_2_2_EAP/src/main/org/hornetq/core/journal/impl/JournalCompactor.java
Log:
make the sanity check here a warn to avoid compacting issues

Modified: branches/Branch_2_2_EAP/src/main/org/hornetq/core/journal/impl/JournalCompactor.java
===================================================================
--- branches/Branch_2_2_EAP/src/main/org/hornetq/core/journal/impl/JournalCompactor.java	2011-03-08 07:45:20 UTC (rev 10304)
+++ branches/Branch_2_2_EAP/src/main/org/hornetq/core/journal/impl/JournalCompactor.java	2011-03-08 15:07:51 UTC (rev 10305)
@@ -342,7 +342,7 @@
       if (pendingTransactions.get(transactionID) != null)
       {
          // Sanity check, this should never happen
-         throw new IllegalStateException("Inconsistency during compacting: CommitRecord ID = " + transactionID +
+         log.warn("Inconsistency during compacting: CommitRecord ID = " + transactionID +
                                          " for an already committed transaction during compacting");
       }
       else
@@ -366,7 +366,7 @@
       if (newRecords.get(recordID) != null)
       {
          // Sanity check, it should never happen
-         throw new IllegalStateException("Inconsistency during compacting: Delete record being read on an existent record (id=" + recordID +
+         log.warn("Inconsistency during compacting: Delete record being read on an existent record (id=" + recordID +
                                          ")");
       }
 



More information about the hornetq-commits mailing list