sun-9545sunoj commented on PR #13374:
URL: https://github.com/apache/seatunnel/pull/13374#issuecomment-7045446683
Thanks @DanielLeens, good catch. Fixed in 58544306e (on top of the dev merge
1a23142c8).
**POSIX permission test**
(`DualFormatCheckpointReaderTest#testV1FileThatCannotBeReadFailsClosed`)
- Before any POSIX call, the test now assumes that the TempDir file's
`FileStore` supports `PosixFileAttributeView` (your option A). On the Windows
default file system it is skipped instead of throwing
`UnsupportedOperationException`.
- The original permissions are saved and restored in `finally`.
- The `Files.isReadable` assumption for privileged users is kept after the
change. All assertions are unchanged: the legacy getter swallowing the failure,
fail-closed for both selection methods, and fallback to an older readable
checkpoint.
**A related portability gap I found while checking this:** the same class
also runs every scenario against the Hadoop storage on the local FS. The HDFS
module's own `LocalFileCheckPointTest` is `@EnabledOnOs({LINUX, MAC})` because
Hadoop's local file system needs winutils on Windows. So the Hadoop backend in
this class is now skipped on Windows with an assumption, and the local-file
backend still runs the corrupt-v1, all-unreadable and mixed-format cases there.
Nothing else in the class is disabled.
Locally (macOS, JDK 11): 27 runs, 0 failures, 0 skipped, so the permission
case executed. `-DskipTests verify` passes on the server module. I can't run
the Windows lane locally; it will show in the Build workflow once Actions is
enabled on my fork, and I'll run it for the current head and check the run SHA.
--
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]