This is an automated email from the ASF dual-hosted git repository.

felixybw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new ba81cac9cf Fix IllegalAccessError when converting viewfs to hdfs 
(#8940)
ba81cac9cf is described below

commit ba81cac9cf94c0674c9b775178e606c23b42f18b
Author: Yuming Wang <[email protected]>
AuthorDate: Tue Mar 11 07:19:26 2025 +0800

    Fix IllegalAccessError when converting viewfs to hdfs (#8940)
    
    Co-authored-by: Kent Yao <[email protected]>
---
 .../main/scala/org/apache/hadoop/fs/viewfs/ViewFileSystemUtils.scala | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/gluten-substrait/src/main/scala/org/apache/hadoop/fs/viewfs/ViewFileSystemUtils.scala
 
b/gluten-substrait/src/main/scala/org/apache/hadoop/fs/viewfs/ViewFileSystemUtils.scala
index 840f2b0772..312f0a486d 100644
--- 
a/gluten-substrait/src/main/scala/org/apache/hadoop/fs/viewfs/ViewFileSystemUtils.scala
+++ 
b/gluten-substrait/src/main/scala/org/apache/hadoop/fs/viewfs/ViewFileSystemUtils.scala
@@ -31,10 +31,7 @@ object ViewFileSystemUtils {
     val path = new Path(f)
     FileSystem.get(path.toUri, hadoopConfig) match {
       case vfs: ViewFileSystem =>
-        val fsStateField = vfs.getClass.getDeclaredField("fsState")
-        fsStateField.setAccessible(true)
-        val fsState = fsStateField.get(vfs).asInstanceOf[InodeTree[FileSystem]]
-        val res = fsState.resolve(f, true)
+        val res = vfs.fsState.resolve(f, true)
         if (res.isInternalDir) {
           f
         } else {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to