xloya commented on code in PR #5597:
URL: https://github.com/apache/gravitino/pull/5597#discussion_r1845954154
##########
clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/GravitinoVirtualFileSystem.java:
##########
@@ -559,6 +563,19 @@ public long getDefaultBlockSize(Path f) {
return
context.getFileSystem().getDefaultBlockSize(context.getActualFileLocation());
}
+ @Override
+ public Token<?>[] addDelegationTokens(String renewer, Credentials
credentials) {
+ List<Token<?>> tokenList = Lists.newArrayList();
+ for (FileSystem fileSystem : internalFileSystemCache.asMap().values()) {
Review Comment:
I think we don't need to do filtering, please see the specific code call:




1. The `getCanonicalServiceName` and `getChildFileSystems` methods will
always return `false` in the default implementations.
2. Some FileSystems do not support token will also override the
`getCanonicalServiceName` to return `null` directly(like S3AFileSystem,
AliyunOSSFileSystem)

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