Github user harshach commented on the issue:

    https://github.com/apache/storm/pull/1541
  
    @HeartSaVioR while we are here can we fix the JSON response as well.
    currently what we have is this
    
[{"spoutLagResult":"[{\"topic\":\"topic\",\"partition\":0,\"consumerCommittedOffset\":1175610,\"logHeadOffset\":5634192,\"lag\":4458582},{\"topic\":\"topic\",\"partition\":1,\"consumerCommittedOffset\":1251325,\"logHeadOffset\":5634192,\"lag\":4382867}]","spoutId":"spout","spoutType":"KAFKA"}]
    
    we should be returning an array instead lets have something like this
    
    { "spoutId" : "spout"
      "spoutType" :  "KAFKA"
      "spoutLagResult" : [
          "topic": // key is topic name
                ["partition0": 
{\"consumerCommittedOffset\":1175610,\"logHeadOffset\":5634192,\"lag\":4458582},
                 "partition2: 
{\"consumerCommittedOffset\":1175610,\"logHeadOffset\":5634192,\"lag\":4458582},
                ],
          "topic2" : 
                     ["partition0": 
{\"consumerCommittedOffset\":1175610,\"logHeadOffset\":5634192,\"lag\":4458582},
                 "partition2: 
{\"consumerCommittedOffset\":1175610,\"logHeadOffset\":5634192,\"lag\":4458582},
                ]
      
    }



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to