mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-6071 - Log info about corrupted journal records at WARN level
This commit is contained in:
parent
75ff17af41
commit
66c348b1b8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue