HDFS-7190. Bad use of Preconditions in startFileInternal(). Contributed by Dawson Choong.

This commit is contained in:
Haohui Mai 2014-10-14 23:42:19 -07:00
parent 1220bb72d4
commit 128ace10cd
2 changed files with 3 additions and 1 deletions

View File

@ -396,6 +396,9 @@ Release 2.7.0 - UNRELEASED
HDFS-7201. Fix typos in hdfs-default.xml. (Dawson Choong via wheat9) HDFS-7201. Fix typos in hdfs-default.xml. (Dawson Choong via wheat9)
HDFS-7190. Bad use of Preconditions in startFileInternal().
(Dawson Choong via wheat9)
Release 2.6.0 - UNRELEASED Release 2.6.0 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -2679,7 +2679,6 @@ private BlocksMapUpdateInfo startFileInternal(FSPermissionChecker pc,
edek.getEncryptedKeyVersion().getMaterial(), edek.getEncryptedKeyVersion().getMaterial(),
edek.getEncryptedKeyIv(), edek.getEncryptedKeyIv(),
ezKeyName, edek.getEncryptionKeyVersionName()); ezKeyName, edek.getEncryptionKeyVersionName());
Preconditions.checkNotNull(feInfo);
} }
final INodeFile myFile = INodeFile.valueOf(inode, src, true); final INodeFile myFile = INodeFile.valueOf(inode, src, true);