HDFS-5859. DataNode#checkBlockToken should check block tokens even if security is not enabled (cmccabe)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1563328 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1f7dd7811a
commit
f6bfe98639
|
@ -303,6 +303,9 @@ Release 2.4.0 - UNRELEASED
|
||||||
HDFS-5804. HDFS NFS Gateway fails to mount and proxy when using Kerberos.
|
HDFS-5804. HDFS NFS Gateway fails to mount and proxy when using Kerberos.
|
||||||
(Abin Shahab via jing9)
|
(Abin Shahab via jing9)
|
||||||
|
|
||||||
|
HDFS-5859. DataNode#checkBlockToken should check block tokens even if
|
||||||
|
security is not enabled. (cmccabe)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-5790. LeaseManager.findPath is very slow when many leases need recovery
|
HDFS-5790. LeaseManager.findPath is very slow when many leases need recovery
|
||||||
|
|
|
@ -1194,7 +1194,7 @@ public class DataNode extends Configured
|
||||||
|
|
||||||
private void checkBlockToken(ExtendedBlock block, Token<BlockTokenIdentifier> token,
|
private void checkBlockToken(ExtendedBlock block, Token<BlockTokenIdentifier> token,
|
||||||
AccessMode accessMode) throws IOException {
|
AccessMode accessMode) throws IOException {
|
||||||
if (isBlockTokenEnabled && UserGroupInformation.isSecurityEnabled()) {
|
if (isBlockTokenEnabled) {
|
||||||
BlockTokenIdentifier id = new BlockTokenIdentifier();
|
BlockTokenIdentifier id = new BlockTokenIdentifier();
|
||||||
ByteArrayInputStream buf = new ByteArrayInputStream(token.getIdentifier());
|
ByteArrayInputStream buf = new ByteArrayInputStream(token.getIdentifier());
|
||||||
DataInputStream in = new DataInputStream(buf);
|
DataInputStream in = new DataInputStream(buf);
|
||||||
|
|
Loading…
Reference in New Issue