HADOOP-8818. Use equals instead == in MD5MD5CRC32FileChecksum and TFileDumper. Contributed by Brandon Li.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1385374 13f79535-47bb-0310-9956-ffa450edef68 (cherry picked from commit 0c53ed4cd122f87b2b041d670b9b59e27da5439c) (cherry picked from commit 7b64e5805747f7be8ad1b8cbcefc7a312350a199)
This commit is contained in:
parent
e862fe7f02
commit
cf8bcc73c2
@ -1100,6 +1100,9 @@ Release 2.7.3 - UNRELEASED
|
||||
HADOOP-12792. TestUserGroupInformation#testGetServerSideGroups fails in
|
||||
chroot (Eric Badger via jlowe)
|
||||
|
||||
HADOOP-8818. Use equals instead == in MD5MD5CRC32FileChecksum
|
||||
and TFileDumper. (Brandon Li via suresh)
|
||||
|
||||
Release 2.7.2 - 2016-01-25
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -134,7 +134,7 @@ public static MD5MD5CRC32FileChecksum valueOf(Attributes attrs
|
||||
|
||||
try {
|
||||
// old versions don't support crcType.
|
||||
if (crcType == null || crcType == "") {
|
||||
if (crcType == null || crcType.equals("")) {
|
||||
finalCrcType = DataChecksum.Type.CRC32;
|
||||
} else {
|
||||
finalCrcType = DataChecksum.Type.valueOf(crcType);
|
||||
|
@ -126,7 +126,7 @@ static public void dumpInfo(String file, PrintStream out, Configuration conf)
|
||||
dataSizeUncompressed += region.getRawSize();
|
||||
}
|
||||
properties.put("Data Block Bytes", Long.toString(dataSize));
|
||||
if (reader.readerBCF.getDefaultCompressionName() != "none") {
|
||||
if (!reader.readerBCF.getDefaultCompressionName().equals("none")) {
|
||||
properties.put("Data Block Uncompressed Bytes", Long
|
||||
.toString(dataSizeUncompressed));
|
||||
properties.put("Data Block Compression Ratio", String.format(
|
||||
|
Loading…
x
Reference in New Issue
Block a user