Author: atm
Date: Wed Nov 28 01:38:31 2012
New Revision: 1414500
URL: http://svn.apache.org/viewvc?rev=1414500&view=rev
Log:
HDFS-4214. OfflineEditsViewer should print out the offset at which it encountered an error.
Contributed by Colin Patrick McCabe.
Modified:
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineEditsViewer/OfflineEditsBinaryLoader.java
Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt?rev=1414500&r1=1414499&r2=1414500&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt (original)
+++ hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Wed Nov 28 01:38:31 2012
@@ -484,6 +484,9 @@ Release 2.0.3-alpha - Unreleased
HDFS-4038. Override toString() for BookKeeperEditLogInputStream.
(Vinay via umamahesh)
+ HDFS-4214. OfflineEditsViewer should print out the offset at which it
+ encountered an error. (Colin Patrick McCabe via atm)
+
OPTIMIZATIONS
BUG FIXES
Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineEditsViewer/OfflineEditsBinaryLoader.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineEditsViewer/OfflineEditsBinaryLoader.java?rev=1414500&r1=1414499&r2=1414500&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineEditsViewer/OfflineEditsBinaryLoader.java
(original)
+++ hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineEditsViewer/OfflineEditsBinaryLoader.java
Wed Nov 28 01:38:31 2012
@@ -79,6 +79,7 @@ class OfflineEditsBinaryLoader implement
} catch (IOException e) {
if (!recoveryMode) {
// Tell the visitor to clean up, then re-throw the exception
+ LOG.error("Got IOException at position " + inputStream.getPosition());
visitor.close(e);
throw e;
}
@@ -87,6 +88,7 @@ class OfflineEditsBinaryLoader implement
} catch (RuntimeException e) {
if (!recoveryMode) {
// Tell the visitor to clean up, then re-throw the exception
+ LOG.error("Got RuntimeException at position " + inputStream.getPosition());
visitor.close(e);
throw e;
}
|