HADOOP-7131. Exceptions thrown by Text methods should include the causing exception. Contributed by Uma Maheswara Rao G.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1078660 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f2ff6cca37
commit
97dcf05fde
|
@ -94,6 +94,9 @@ Trunk (unreleased changes)
|
||||||
HADOOP-7098. Tasktracker property not set in conf/hadoop-env.sh.
|
HADOOP-7098. Tasktracker property not set in conf/hadoop-env.sh.
|
||||||
(Bernd Fondermann via tomwhite)
|
(Bernd Fondermann via tomwhite)
|
||||||
|
|
||||||
|
HADOOP-7131. Exceptions thrown by Text methods should include the causing
|
||||||
|
exception. (Uma Maheswara Rao G via todd)
|
||||||
|
|
||||||
Release 0.22.0 - Unreleased
|
Release 0.22.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -195,7 +195,7 @@ public class Text extends BinaryComparable
|
||||||
bytes = bb.array();
|
bytes = bb.array();
|
||||||
length = bb.limit();
|
length = bb.limit();
|
||||||
}catch(CharacterCodingException e) {
|
}catch(CharacterCodingException e) {
|
||||||
throw new RuntimeException("Should not have happened " + e.toString());
|
throw new RuntimeException("Should not have happened ", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ public class Text extends BinaryComparable
|
||||||
try {
|
try {
|
||||||
return decode(bytes, 0, length);
|
return decode(bytes, 0, length);
|
||||||
} catch (CharacterCodingException e) {
|
} catch (CharacterCodingException e) {
|
||||||
throw new RuntimeException("Should not have happened " + e.toString());
|
throw new RuntimeException("Should not have happened " , e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue