This commit is contained in:
Howard Gao 2018-01-31 10:39:17 +08:00
commit 2cbfabea2f
1 changed files with 5 additions and 1 deletions

View File

@ -486,7 +486,11 @@ public class JournalCompactor extends AbstractJournalUpdateTask implements Journ
@Override
void execute() throws Exception {
JournalRecord updateRecord = journal.getRecords().get(id);
updateRecord.addUpdateFile(usedFile, size);
if (updateRecord == null) {
ActiveMQJournalLogger.LOGGER.noRecordDuringCompactReplay(id);
} else {
updateRecord.addUpdateFile(usedFile, size);
}
}
@Override