echauchot opened a new issue, #10751:
URL: https://github.com/apache/paimon/issues/10751

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/paimon/issues) 
and found nothing similar.
   
   
   ### Paimon version
   
   Affected: 1.4.2, 2.1.0 and current master
   
   
   ### Compute Engine
   
   Flink
   
   ### Minimal reproduce step
   
   the Flink file system fails on a wrong bucket, then delegates to Hadoop 
filesystem that throws "RuntimeException: java.lang.ClassNotFoundException: 
Class org.apache.hadoop.fs.s3a.S3AFileSystem not found" because hadoop-aws is 
not on the classpath. That misleading error is all the user sees instead of the 
wrong bucket error.
   
   ### What doesn't meet your expectations?
   
   FileIO.get probes the prefer, fallback and Hadoop loaders through 
checkAccess, but only catches IOException, so a RuntimeException or 
LinkageError thrown by a later probe escapes and the earlier IOExceptions are 
dropped.
   Expected: every loader failure is kept as suppressed on the final 
UnsupportedSchemeException, and its message names the first underlying error.
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


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