HDFS-3997. OfflineImageViewer incorrectly passes value of imageVersion when visiting IS_COMPRESSED element. Contributed by Mithun Radhakrishnan.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1399062 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
21b8d7b1fd
commit
402836479f
@ -458,6 +458,9 @@ Release 2.0.3-alpha - Unreleased
|
|||||||
|
|
||||||
HDFS-4061. TestBalancer and TestUnderReplicatedBlocks need timeouts. (eli)
|
HDFS-4061. TestBalancer and TestUnderReplicatedBlocks need timeouts. (eli)
|
||||||
|
|
||||||
|
HDFS-3997. OfflineImageViewer incorrectly passes value of imageVersion when
|
||||||
|
visiting IS_COMPRESSED element. (Mithun Radhakrishnan via atm)
|
||||||
|
|
||||||
Release 2.0.2-alpha - 2012-09-07
|
Release 2.0.2-alpha - 2012-09-07
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -165,7 +165,7 @@ public void loadImage(DataInputStream in, ImageVisitor v,
|
|||||||
|
|
||||||
if (LayoutVersion.supports(Feature.FSIMAGE_COMPRESSION, imageVersion)) {
|
if (LayoutVersion.supports(Feature.FSIMAGE_COMPRESSION, imageVersion)) {
|
||||||
boolean isCompressed = in.readBoolean();
|
boolean isCompressed = in.readBoolean();
|
||||||
v.visit(ImageElement.IS_COMPRESSED, imageVersion);
|
v.visit(ImageElement.IS_COMPRESSED, String.valueOf(isCompressed));
|
||||||
if (isCompressed) {
|
if (isCompressed) {
|
||||||
String codecClassName = Text.readString(in);
|
String codecClassName = Text.readString(in);
|
||||||
v.visit(ImageElement.COMPRESS_CODEC, codecClassName);
|
v.visit(ImageElement.COMPRESS_CODEC, codecClassName);
|
||||||
|
Loading…
Reference in New Issue
Block a user