bryanck opened a new pull request, #19310:
URL: https://github.com/apache/iceberg/pull/19310

   This PR sets the classloader for loading format models to the classloader 
that loaded the registry class, instead of using the thread context 
classloader. The registry attempts to load various format models and skips 
those that are missing by catching certain exceptions and errors. In Spark, the 
thread context classloader is sometimes the ExecutorClassLoader at this time, 
which throws Spark's RemoteClassLoaderError when a class isn't found, like the 
Flink model. The registry doesn't catch that error, so the Spark job fails. 
Using the registry's classloader ensures that the same loader is used that 
loaded the registry class itself which should throw the expected exceptions 
when a class isn't found.


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


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

Reply via email to