activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject activemq git commit: https://issues.apache.org/jira/browse/AMQ-6071 - Log info about corrupted journal records at WARN level
Date Fri, 04 Dec 2015 11:31:06 GMT
Repository: activemq
Updated Branches:
  refs/heads/master 75ff17af4 -> 66c348b1b


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


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/66c348b1
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/66c348b1
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/66c348b1

Branch: refs/heads/master
Commit: 66c348b1b85e341ed508b9c10028c037a226dfb6
Parents: 75ff17a
Author: Torsten Mielke <tmielke@redhat.com>
Authored: Fri Dec 4 09:39:03 2015 +0100
Committer: gtully <gary.tully@gmail.com>
Committed: Fri Dec 4 11:29:55 2015 +0000

----------------------------------------------------------------------
 .../org/apache/activemq/store/kahadb/disk/journal/Journal.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/66c348b1/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/journal/Journal.java
----------------------------------------------------------------------
diff --git a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/journal/Journal.java
b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/journal/Journal.java
index 8c82cf2..d00c377 100644
--- a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/journal/Journal.java
+++ b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/journal/Journal.java
@@ -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 {


Mime
View raw message