lasdf1234 opened a new pull request, #15136: URL: https://github.com/apache/gravitino/pull/15136
### What changes were proposed in this pull request? - Merge local/remote symlink validation into scheme dispatch: `file://` keeps NIO checks; `hdfs://` keeps Hadoop symlink walking; object-store schemes skip `Path.getFileSystem`. - If Hadoop has no `FileSystem` for a scheme, `RemoteLocationValidator` keeps `OrphanFileLocationUtils` lexical containment instead of failing the job. - Add unit coverage for missing Hadoop FS on `s3` / `gs` / `abfs` / `oss`. ### Why are the changes needed? Object-store Iceberg tables commonly use FileIO without a matching Hadoop FS on the job classpath. Forcing `getFileSystem` for every non-`file` location fails with `UnsupportedFileSystemException` before `remove_orphan_files`, even though lexical containment is enough and object stores have no POSIX symlink model. Fixes #15135 ### Does this PR introduce _any_ user-facing change? No API change. Built-in Iceberg remove-orphan-files jobs no longer fail solely because Hadoop lacks a `FileSystem` for object-store URI schemes. ### How was this patch tested? - `./gradlew :maintenance:jobs:test --tests org.apache.gravitino.maintenance.jobs.iceberg.TestRemoteLocationValidator --tests org.apache.gravitino.maintenance.jobs.iceberg.TestIcebergRemoveOrphanFilesJob -PskipITs -PskipDockerTests=true` Made with [Cursor](https://cursor.com) -- 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]
