GitHub user kishorvpatil opened a pull request:
https://github.com/apache/storm/pull/1167
[YSTORM-1587] Avoid NPE while prining Metrics
Avoiding..
```
1701 [main] INFO o.a.s.StormSubmitter - Submitting topology wc-test in
distributed mode with conf
{"topology.worker.metrics":{"CPU":"org.apache.storm.metrics.sigar.CPUMetric"},"storm.zookeeper.topology.auth.scheme":"digest","topology.worker.gc.childopts":"-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:NewSize=128m
-XX:CMSInitiatingOccupancyFraction=70
-XX:-CMSConcurrentMTEnabled","topology.workers":4,"topology.builtin.metrics.bucket.size.secs":10,"topology.worker.childopts":"-Xmx2g","storm.zookeeper.topology.auth.payload":"-5601074936064852696:-8332153375154710952","topology.metrics.consumer.register":[{"argument":null,"class":"org.apache.storm.metric.LoggingMetricsConsumer","parallelism.hint":1},{"argument":"http:\/\/survivedlived.corp.ir2.yahoo.com:45976\/","class":"org.apache.storm.metric.HttpForwardingMetricsConsumer","parallelism.hint":1}]}
2137 [main] INFO o.a.s.StormSubmitter - Finished submitting topology:
wc-test
Exception in thread "main" java.lang.NullPointerException
at
org.apache.storm.starter.ThroughputVsLatency.printMetrics(ThroughputVsLatency.java:277)
at
org.apache.storm.starter.ThroughputVsLatency.main(ThroughputVsLatency.java:425)
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kishorvpatil/incubator-storm storm1587
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/storm/pull/1167.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1167
----
commit cbc506c0b4e56ef70e640c268b5b57f845c0e1fe
Author: Kishor Patil <[email protected]>
Date: 2016-02-29T16:54:46Z
Avoid NPE while prining Metrics
----
---
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.
---