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,8 +486,12 @@ public class JournalCompactor extends AbstractJournalUpdateTask implements Journ
@Override
void execute() throws Exception {
JournalRecord updateRecord = journal.getRecords().get(id);
if (updateRecord == null) {
ActiveMQJournalLogger.LOGGER.noRecordDuringCompactReplay(id);
} else {
updateRecord.addUpdateFile(usedFile, size);
}
}
@Override
public String toString() {