You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2020/02/06 06:02:24 UTC

[GitHub] [hadoop] bilaharith commented on a change in pull request #1821: HADOOP-16825: Checkaccess testcase fix

bilaharith commented on a change in pull request #1821: HADOOP-16825: Checkaccess testcase fix
URL: https://github.com/apache/hadoop/pull/1821#discussion_r375653803
 
 

 ##########
 File path: hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystem.java
 ##########
 @@ -946,7 +946,7 @@ public AclStatus getAclStatus(final Path path) throws IOException {
   @Override
   public void access(final Path path, final FsAction mode) throws IOException {
     LOG.debug("AzureBlobFileSystem.access path : {}, mode : {}", path, mode);
-    Path qualifiedPath = makeQualified(path);
+    Path qualifiedPath = path == null ? null : makeQualified(path);
 
 Review comment:
   Made it this way, otherwise even if the flag for the check access is false this will throw IllegalArgumentException. Which will affect backward compatibility.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org