yuqi1129 commented on code in PR #6985:
URL: https://github.com/apache/gravitino/pull/6985#discussion_r2052025778


##########
clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/BaseGVFSOperations.java:
##########
@@ -537,6 +553,13 @@ private void setCallerContext(FilesetDataOperation 
operation) {
     CallerContext.CallerContextHolder.set(callerContext);
   }
 
+  private void setCallerContextForGetCredentials(String locationName) {
+    Map<String, String> contextMap = Maps.newHashMap();
+    contextMap.put(CredentialConstants.HTTP_HEADER_CURRENT_LOCATION_NAME, 
locationName);
+    CallerContext callerContext = 
CallerContext.builder().withContext(contextMap).build();

Review Comment:
   I means what if the `callContext` is not empty and contains some other 
properties here, you will remove them all when you add `LOCATION_NAME`.



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

Reply via email to