Github user pczb commented on a diff in the pull request:
https://github.com/apache/storm/pull/1934#discussion_r100485119
--- Diff: storm-core/src/jvm/org/apache/storm/metric/SystemBolt.java ---
@@ -85,14 +87,15 @@ public Object getValueAndReset() {
}
}
+ @SuppressWarnings({ "unchecked", "rawtypes" })
@Override
- public void prepare(final Map stormConf, TopologyContext context,
OutputCollector collector) {
- if(_prepareWasCalled &&
!"local".equals(stormConf.get(Config.STORM_CLUSTER_MODE))) {
+ public void prepare(final Map topoConf, TopologyContext context,
OutputCollector collector) {
+ if(_prepareWasCalled &&
!"local".equals(topoConf.get(Config.STORM_CLUSTER_MODE))) {
throw new RuntimeException("A single worker should have 1
SystemBolt instance.");
}
_prepareWasCalled = true;
--- End diff --
is storm prepare method thread safe?
---
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.
---