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/branches/branch-2@1399063 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7c550ccb09
commit
6b11a5e94a
|
@ -121,6 +121,9 @@ Release 2.0.3-alpha - Unreleased
|
|||
|
||||
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
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -165,7 +165,7 @@ class ImageLoaderCurrent implements ImageLoader {
|
|||
|
||||
if (LayoutVersion.supports(Feature.FSIMAGE_COMPRESSION, imageVersion)) {
|
||||
boolean isCompressed = in.readBoolean();
|
||||
v.visit(ImageElement.IS_COMPRESSED, imageVersion);
|
||||
v.visit(ImageElement.IS_COMPRESSED, String.valueOf(isCompressed));
|
||||
if (isCompressed) {
|
||||
String codecClassName = Text.readString(in);
|
||||
v.visit(ImageElement.COMPRESS_CODEC, codecClassName);
|
||||
|
|
Loading…
Reference in New Issue