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-592587293
 
 
   @guoweiM Singletons are usually scoped to the Class, not the JVM. If a class 
is loaded two times (by two different classloaders) then you also have two 
different singletons. Only if you can guarantee that the class comes from the 
application class loader, then you have truely only once instance of the 
singleton.
   
   In the Flink case, this is actually somewhat desirable, in my understanding.
   Different jobs that might load different jars (and different versions of a 
library) have different "singletons", so they do not conflict with each other.
   

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