Uploaded image for project: 'Logging analytics'
  1. Logging analytics
  2. LOG-659

Initial POMBA messages for topics may be dropped if topic does not exist already

XMLWordPrintable

      If the POA-AUDIT-INIT, POA-RULES-VALIDATION or POA-AUDIT-RESULTS topics do not yet exist when the associated messaging is invoked, the topic will be created on the fly but the message itself may be lost. Subsequent messages for that topic will be delivered.

      If none of the topics exist initially, this may mean that the first three POMBA flows would be incomplete, whereas the fourth flow would be successful (as the topics would have been created by each previous flow).

      Also, on startup, errors may be seen as POMBA components (e.g. Context Aggregator) attempt to read from non-existent topics:

       rg.json.JSONException: JSONObject["result"] not found.
          at org.json.JSONObject.get(JSONObject.java:473) ~[json-20140107.jar:na]
          at org.json.JSONObject.getJSONArray(JSONObject.java:555) ~[json-20140107.jar:na]
          at com.att.nsa.mr.client.impl.MRConsumerImpl.fetch(MRConsumerImpl.java:208) [dmaapClient-1.1.5.jar:na]
          at com.att.nsa.mr.client.impl.MRConsumerImpl.fetch(MRConsumerImpl.java:100) [dmaapClient-1.1.5.jar:na]
          at org.onap.pomba.contextaggregator.service.ContextAggregatorProcessor.call(ContextAggregatorProcessor.java:121) [classes/:na]
          at org.onap.pomba.contextaggregator.service.ContextAggregatorProcessor.call(ContextAggregatorProcessor.java:1) [classes/:na]
          at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_151]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_151]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_151]
          at java.lang.Thread.run(Unknown Source) [na:1.8.0_151]

      The solution may be to create the topics on startup of associated POMBA components or to include the POMBA topics in the default DMaaP deployment configuration so they always exist.

            jbalasub jbalasub
            dstangl dstangl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: