Uploaded image for project: 'Eagle (Retired)'
  1. Eagle (Retired)
  2. EAGLE-719

configuration bug in applications

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v0.5.0
    • 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)

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

      Attachments

        Issue Links

          Activity

            People

              wuziyang Michael Wu
              wujinhu wujinhu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: