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

Application submitted to Storm is always shown as “HBaseAuditLogApp”

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v0.5.0
    • None
    • Core::App Engine
    • None

    Description

      Issue:
      Steps to reproduce:

      • Started application from Eagle UI (eg: alert engine)
      • Go to Storm UI, topology name is shown as "HBaseAuditLogApp"

      Reason:
      In the constructor function of class "ApplicationAction":

      this.effectiveConfig = ConfigFactory.parseMap(executionConfig)
      .withFallback(serverConfig)
      .withFallback(ConfigFactory.parseMap(metadata.getContext()))

      According to the java doc of withFallBack(theOther) :

      Returns a new value computed by merging this value with another, with keys in this value "winning" over the other one.

      As a result, "serverConfig" will win over "ConfigFactory.parseMap(metadata.getContext())" which means the default "ConfigString(appId="HBaseAuditApp")" and "ConfigString(siteId="testSite")" will win over the meta data of the user's topology.

      Fix:
      Change the order of "withFallBack" to:

      this.effectiveConfig = ConfigFactory.parseMap(executionConfig)
      .withFallback(ConfigFactory.parseMap(metadata.getContext()))
      .withFallback(serverConfig)

      Attachments

        Issue Links

          Activity

            People

              DanielZhou Da Zhou
              DanielZhou Da Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: