Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
v0.5.0
-
None
-
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
- links to