HDFS-4214. OfflineEditsViewer should print out the offset at which it encountered an error. Contributed by Colin Patrick McCabe.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1414500 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9047eb5162
commit
2b8824853b
@ -484,6 +484,9 @@ Release 2.0.3-alpha - Unreleased
|
|||||||
HDFS-4038. Override toString() for BookKeeperEditLogInputStream.
|
HDFS-4038. Override toString() for BookKeeperEditLogInputStream.
|
||||||
(Vinay via umamahesh)
|
(Vinay via umamahesh)
|
||||||
|
|
||||||
|
HDFS-4214. OfflineEditsViewer should print out the offset at which it
|
||||||
|
encountered an error. (Colin Patrick McCabe via atm)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -79,6 +79,7 @@ public void loadEdits() throws IOException {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
if (!recoveryMode) {
|
if (!recoveryMode) {
|
||||||
// Tell the visitor to clean up, then re-throw the exception
|
// Tell the visitor to clean up, then re-throw the exception
|
||||||
|
LOG.error("Got IOException at position " + inputStream.getPosition());
|
||||||
visitor.close(e);
|
visitor.close(e);
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
@ -87,6 +88,7 @@ public void loadEdits() throws IOException {
|
|||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
if (!recoveryMode) {
|
if (!recoveryMode) {
|
||||||
// Tell the visitor to clean up, then re-throw the exception
|
// Tell the visitor to clean up, then re-throw the exception
|
||||||
|
LOG.error("Got RuntimeException at position " + inputStream.getPosition());
|
||||||
visitor.close(e);
|
visitor.close(e);
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user