You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eagle.apache.org by "wujinhu (JIRA)" <ji...@apache.org> on 2016/11/02 02:27:58 UTC
[jira] [Created] (EAGLE-719) configuration bug in applications
wujinhu created EAGLE-719:
-----------------------------
Summary: configuration bug in applications
Key: EAGLE-719
URL: https://issues.apache.org/jira/browse/EAGLE-719
Project: Eagle
Issue Type: Bug
Affects Versions: v0.5.0
Reporter: wujinhu
Assignee: Michael Wu
Fix For: v0.5.0
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) {
manager.init(config);
}
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)