DadanielZ commented on a change in pull request #1498: HADOOP-16578 : Avoid 
FileSystem API calls when FileSystem already exists
URL: https://github.com/apache/hadoop/pull/1498#discussion_r327276664
 
 

 ##########
 File path: 
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystem.java
 ##########
 @@ -108,7 +108,8 @@ public void initialize(URI uri, Configuration 
configuration)
     this.setWorkingDirectory(this.getHomeDirectory());
 
     if (abfsConfiguration.getCreateRemoteFileSystemDuringInitialization()) {
-      if (!this.fileSystemExists()) {
+
+      if (this.tryGetFileStatus(new Path("/")) == null) {
 
 Review comment:
   replace "/" with AbfsHttpConstants.ROOT_PATH

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


With regards,
Apache Git Services

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

Reply via email to