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 2019/09/23 18:56:50 UTC
[GitHub] [hadoop] DadanielZ commented on a change in pull request #1498:
HADOOP-16578 : Avoid FileSystem API calls when FileSystem already exists
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:
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