This commit is contained in:
Justin Bertram 2017-03-13 10:28:17 -05:00
commit e13e014c6d
3 changed files with 11 additions and 2 deletions

View File

@ -741,7 +741,6 @@ public class ActiveMQServerControlImpl extends AbstractControl implements Active
int maxConsumers,
boolean purgeOnNoConsumers,
boolean autoCreateAddress) throws Exception {
System.out.println("Target===================================called!");
checkStarted();
clearIO();

View File

@ -960,7 +960,11 @@ public abstract class AbstractJournalStorageManager implements StorageManager {
PageTransactionInfo pageTX = pagingManager.getTransaction(pageUpdate.pageTX);
pageTX.onUpdate(pageUpdate.recods, null, null);
if (pageTX == null) {
ActiveMQServerLogger.LOGGER.journalCannotFindPageTX(pageUpdate.pageTX);
} else {
pageTX.onUpdate(pageUpdate.recods, null, null);
}
} else {
PageTransactionInfoImpl pageTransactionInfo = new PageTransactionInfoImpl();

View File

@ -1566,4 +1566,10 @@ public interface ActiveMQServerLogger extends BasicLogger {
@Message(id = 224074, value = "Failed to purge queue {0} on no consumers", format = Message.Format.MESSAGE_FORMAT)
void failedToPurgeQueue(@Cause Exception e, SimpleString bindingName);
@LogMessage(level = Logger.Level.ERROR)
@Message(id = 224075, value = "Cannot find pageTX id = {0}", format = Message.Format.MESSAGE_FORMAT)
void journalCannotFindPageTX(Long id);
}