ThomasMarquardt commented on a change in pull request #1821: HADOOP-16825:
Checkaccess testcase fix
URL: https://github.com/apache/hadoop/pull/1821#discussion_r375569721
##########
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:
The original line 949 is correct. If path is null, FileSystem.access should
throw IllegalArgumentException and that's what calling makeQualified(path) will
do.
----------------------------------------------------------------
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]