jerryshao commented on code in PR #6985:
URL: https://github.com/apache/gravitino/pull/6985#discussion_r2048903679
##########
clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/BaseGVFSOperations.java:
##########
@@ -385,15 +400,15 @@ protected Path getActualFilePath(
String subPath = getSubPathFromGvfsPath(filesetIdent, gvfsPath.toString());
NameIdentifier catalogIdent =
NameIdentifier.of(filesetIdent.namespace().level(0),
filesetIdent.namespace().level(1));
- setCallerContext(operation);
String fileLocation;
try {
+ FilesetCatalog filesetCatalog = getFilesetCatalog(catalogIdent);
+ setCallerContextForGetFileLocation(operation);
fileLocation =
- getFilesetCatalog(catalogIdent)
- .getFileLocation(
- NameIdentifier.of(filesetIdent.namespace().level(2),
filesetIdent.name()),
- subPath,
- locationName);
+ filesetCatalog.getFileLocation(
+ NameIdentifier.of(filesetIdent.namespace().level(2),
filesetIdent.name()),
+ subPath,
+ locationName);
Review Comment:
Do you need to clean the context here?
--
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]