Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
v0.5.0
-
None
-
None
Description
In eagle-hadoop-queue/eagle-jpm-mr-history/eagle-jpm-mr-running/eagle-jpm-spark-history/eagle-jpm-aggregation applications, there is an xxxAppConfig class in each application. But they have a static member like manager, which could not initialize twice
--------------------------------------------------------------------
public static xxxxConfig getInstance(Config config) {
if (config != null && manager.config == null)
return manager;
}
--------------------------------------------------------------------
But we have many sites in production, and will call method getInstance many times. So it will cause we may get the configuration of first site for remaining sites.
Attachments
Issue Links
- links to