whua3 opened a new issue, #11813:
URL: https://github.com/apache/gravitino/issues/11813

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   `GravitinoVirtualFileSystem` extends `org.apache.hadoop.fs.FileSystem` but 
does not override `getScheme()`. The base implementation throws 
`UnsupportedOperationException`, so any caller that invokes `fs.getScheme()` on 
a `gvfs://` filesystem fails.
   
   It should simply return the GVFS scheme (`gvfs`, already defined as 
`GravitinoVirtualFileSystemConfiguration.GVFS_SCHEME`), consistent with other 
Hadoop `FileSystem` implementations (HDFS → `hdfs`, S3A → `s3a`, etc.).
   
   ### Error message and/or stacktrace
   
   ```
   java.lang.UnsupportedOperationException: Not implemented by the 
GravitinoVirtualFileSystem FileSystem implementation
       at org.apache.hadoop.fs.FileSystem.getScheme(FileSystem.java:226)
       ...
   ```
   
   ### How to reproduce
   
   ```java
   Configuration conf = new Configuration();
   // ... GVFS configuration ...
   FileSystem fs = 
FileSystem.get(URI.create("gvfs://fileset/metalake/catalog/schema/fs1"), conf);
   fs.getScheme(); // throws UnsupportedOperationException
   ```
   
   ### Additional context
   
   _No response_


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