Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
FLIP-6 feature branch
Description
The RPC service's proxies use the ClassLoader.getSystemClassLoader() for all reflective classloading.
In settings where Flink runs embedded, the Flink framework classes may not be in the System classloader, but for example in the classloader of an OSGI bundle. It is hence better to use the classloader of a Flink Framework class. In most cases, that will be the system classloader, in other cases it will be the classloader for the Flink code bundle: RpcService.class.getClassLoader().