[
https://issues.apache.org/jira/browse/HADOOP-19766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18050075#comment-18050075
]
ASF GitHub Bot commented on HADOOP-19766:
-----------------------------------------
anmolanmol1234 commented on code in PR #8152:
URL: https://github.com/apache/hadoop/pull/8152#discussion_r2664552789
##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java:
##########
@@ -1906,6 +1909,17 @@ private AbfsPerfInfo startTracking(String callerName,
String calleeName) {
return new AbfsPerfInfo(abfsPerfTracker, callerName, calleeName);
}
+ /**
+ * Resets all service types to use BLOB.
+ * Updates the client to reflect the new default service type.
+ */
+ public void resetEndpointforFNS() {
+ getAbfsConfiguration().setFsConfiguredServiceTypetoBlob();
+ getClientHandler().setDefaultServiceType(AbfsServiceType.BLOB);
Review Comment:
Repeated use of gets, can be initialized in a variable
> ABFS: Endpoint Conversion to Blob for FNS Accounts
> --------------------------------------------------
>
> Key: HADOOP-19766
> URL: https://issues.apache.org/jira/browse/HADOOP-19766
> Project: Hadoop Common
> Issue Type: Task
> Components: fs/azure
> Affects Versions: 3.4.1, 3.4.2
> Reporter: Manika Joshi
> Assignee: Manika Joshi
> Priority: Major
> Labels: pull-request-available
>
> We have observed cases of ABFS driver being initialised with DFS for FNS
> accounts which is not a recommended endpoint by the service.
> To prevent this, we’re normalizing endpoint to Blob for FNS accounts even if
> they were initialized with DFS endpoint.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]