anujmodi2021 commented on code in PR #6944:
URL: https://github.com/apache/hadoop/pull/6944#discussion_r1856856277


##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java:
##########
@@ -405,7 +405,7 @@ private synchronized boolean 
getNamespaceEnabledInformationFromServer(
     }
     try {
       LOG.debug("Get root ACL status");
-      getClient().getAclStatus(AbfsHttpConstants.ROOT_PATH, tracingContext);
+      getClient(AbfsServiceType.DFS).getAclStatus(AbfsHttpConstants.ROOT_PATH, 
tracingContext);

Review Comment:
   So the method `getClient(AbfsServiceType.DFS)` will internally call 
`getClientHandler().getDfsClient()`.
   The URi to interact with will be encapsulated into the client in this case 
DFS Client so the URL will always be DFS endpoit URL.
   
   Refer to `AbfsClientHandler` constructor. There we explicitly check and make 
sure AbfsDfsClient is initialized with DFS Endpoint URL.
   
   That's why I think this check here will be redundant.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to