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

(cherry picked from commit 66c348b1b8)
This commit is contained in:
Torsten Mielke 2015-12-04 09:39:03 +01:00 committed by Timothy Bish
parent 82e12f0e5f
commit 8daf6f503e
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 {