Details
Description
Just read getReplicaVisibleLength() code and found it, DataNode.checkWriteAccess is only invoked by DataNode.getReplicaVisibleLength(), let's rename it to checkReadAccess to avoid confusing, since the real impl here is check AccessMode.READ:
blockPoolTokenSecretManager.checkAccess(id, null, block,
BlockTokenSecretManager.AccessMode.READ);
Attachments
Attachments
Issue Links
- relates to
-
HDFS-1813 Hdfs Federation: Authentication using BlockToken in RPC to datanode fails.
- Resolved