StephanEwen commented on issue #11196: [FLINK-16246][connector kinesis] Exclude 
AWS SDK MBean registry from Kinesis build
URL: https://github.com/apache/flink/pull/11196#issuecomment-591347938
 
 
   @hwanju You just gave me an idea here: What if we expose something like 
   `getUserCodeClassLoader().registerCleanupHook(Runnable)`?
   
   Then one could register an MBean unregister action, a thread shutdown 
action, etc. whatever helps.
   Prerequisites for that would be:
   
     - Changing the type of the user code class loader to 
`FlinkDynamicClassLoader extends ClassLoader`.
     - Adjusting methods like `RuntimeContext.getUserCodeClassLoader();` to 
return that type.
     - Adding a `registerCleanupHook(Runnable)` method on the 
`FlinkDynamicClassLoader` class and calls these hooks in the `close()` method.
     - This also should go together well with 
[FLINK-16245](https://issues.apache.org/jira/browse/FLINK-16245)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to