https://issues.apache.org/jira/browse/AMQ-6071 - Log info about corrupted journal records at WARN level

This commit is contained in:
Torsten Mielke 2015-12-04 09:39:03 +01:00 committed by gtully
parent 75ff17af41
commit 66c348b1b8
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public class Journal {
try {
int nextOffset = findNextBatchRecord(reader, recoveryPosition.getOffset() + 1);
Sequence sequence = new Sequence(recoveryPosition.getOffset(), nextOffset >= 0 ? nextOffset - 1 : dataFile.getLength() - 1);
LOG.info("Corrupt journal records found in '" + dataFile.getFile() + "' between offsets: " + sequence);
LOG.warn("Corrupt journal records found in '" + dataFile.getFile() + "' between offsets: " + sequence);
// skip corruption on getNextLocation
recoveryPosition.setOffset((int) sequence.getLast() + 1);
@ -332,7 +332,7 @@ public class Journal {
int nextOffset = findNextBatchRecord(reader, location.getOffset()+1);
if( nextOffset >=0 ) {
Sequence sequence = new Sequence(location.getOffset(), nextOffset - 1);
LOG.info("Corrupt journal records found in '"+dataFile.getFile()+"' between offsets: "+sequence);
LOG.warn("Corrupt journal records found in '" + dataFile.getFile() + "' between offsets: " + sequence);
dataFile.corruptedBlocks.add(sequence);
location.setOffset(nextOffset);
} else {