mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-13 13:35:47 +00:00
NO-JIRA: logger on Exception
(cherry picked from commit 75a4162a36a32d0247f29860c2d74c9fb03d91a4)
This commit is contained in:
parent
6f96b057d5
commit
655f6beb04
@ -39,9 +39,12 @@ import org.apache.activemq.artemis.core.journal.impl.dataformat.JournalDeleteRec
|
|||||||
import org.apache.activemq.artemis.core.journal.impl.dataformat.JournalInternalRecord;
|
import org.apache.activemq.artemis.core.journal.impl.dataformat.JournalInternalRecord;
|
||||||
import org.apache.activemq.artemis.core.journal.impl.dataformat.JournalRollbackRecordTX;
|
import org.apache.activemq.artemis.core.journal.impl.dataformat.JournalRollbackRecordTX;
|
||||||
import org.apache.activemq.artemis.journal.ActiveMQJournalLogger;
|
import org.apache.activemq.artemis.journal.ActiveMQJournalLogger;
|
||||||
|
import org.jboss.logging.Logger;
|
||||||
|
|
||||||
public class JournalCompactor extends AbstractJournalUpdateTask implements JournalRecordProvider {
|
public class JournalCompactor extends AbstractJournalUpdateTask implements JournalRecordProvider {
|
||||||
|
|
||||||
|
private static final Logger logger = Logger.getLogger(JournalCompactor.class);
|
||||||
|
|
||||||
// We try to separate old record from new ones when doing the compacting
|
// We try to separate old record from new ones when doing the compacting
|
||||||
// this is a split line
|
// this is a split line
|
||||||
// We will force a moveNextFiles when the compactCount is bellow than COMPACT_SPLIT_LINE
|
// We will force a moveNextFiles when the compactCount is bellow than COMPACT_SPLIT_LINE
|
||||||
@ -240,6 +243,7 @@ public class JournalCompactor extends AbstractJournalUpdateTask implements Journ
|
|||||||
try {
|
try {
|
||||||
command.execute();
|
command.execute();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
logger.warn(e.getMessage(), e);
|
||||||
ActiveMQJournalLogger.LOGGER.errorReplayingCommands(e);
|
ActiveMQJournalLogger.LOGGER.errorReplayingCommands(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user