virajith commented on a change in pull request #1735: HADOOP-16734. ABFS:
Implement FileSystem.access() method
URL: https://github.com/apache/hadoop/pull/1735#discussion_r354605336
##########
File path:
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java
##########
@@ -884,6 +884,26 @@ public AclStatus getAclStatus(final Path path) throws
IOException {
return aclStatusBuilder.build();
}
+ public void access(final Path path, final FsAction mode)
+ throws AzureBlobFileSystemException {
+ LOG.debug("access for filesystem: {}, path: {}, mode: {}",
+ this.client.getFileSystem(), path, mode);
+ if (!this.abfsConfiguration.isCheckAccessEnabled()
+ || !getIsNamespaceEnabled()) {
+ LOG.debug("Returning; either check access is not enabled or the account"
+ + " used is not namespace enabled");
+ return;
+ }
+ // Uncomment when cherry-picking HADOOP-16612
+ // try (AbfsPerfInfo perfInfo = startTracking("access", "checkAccess")) {
Review comment:
Either HADOOP-16612 needs to go in first or add this after it is in.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]