Hi Chen,
They will not be sharing the same singleton. Firstly, the class is referenced
by its classloader. And the classloader is bound to task. Therefore, different
job’s slots have different classloaders, which means the different task’s
class's references are different.
Please correct me
Hi Guys,
I am running into a problem.
I have 2 jobs running on the same taskmanager. Each Job creates a singleton
of the same class, say MySingleton class. Are they actually sharing the same
singleton?
Hope my question is clear.
Best,
Burgess Chen
--
Sent from: http://apache-flink-user-mail