You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "echauchot (via GitHub)" <gi...@apache.org> on 2026/10/22 10:29:07 UTC
[PR] [common] Keep unchecked loader failures in FileIO.get [paimon]
echauchot opened a new pull request, #10752:
URL: https://github.com/apache/paimon/pull/10752
### Purpose
close #10751
FileIO.get probes the prefer, fallback and Hadoop loaders through
checkAccess but only catches IOException. A RuntimeException or
LinkageError thrown by a later probe, such as Hadoop's
"ClassNotFoundException: Class org.apache.hadoop.fs.s3a.S3AFileSystem
not found" when hadoop-aws is missing, escapes and drops the real
errors collected from the earlier loaders.
checkAccess now wraps unchecked failures into an IOException naming
the loader, so every attempt is kept as suppressed on the final
UnsupportedSchemeException, whose message now also names the first
underlying error.
### Tests
a new test, testGetKeepsUncheckedFailuresOfLoaders, plus a small FailingFileIOLoader helper class.
- one loader throws RuntimeException(ClassNotFoundException("…S3AFileSystem not found")) as an observed failure using Flink
- another throws the real IOException;
- the test checks that both survive and that the message names the first error.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [common] Keep unchecked loader failures in FileIO.get [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on PR #10752:
URL: https://github.com/apache/paimon/pull/10752#issuecomment-6409647002
+1
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [common] Keep unchecked loader failures in FileIO.get [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #10752:
URL: https://github.com/apache/paimon/pull/10752
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org