nwangtw commented on a change in pull request #3107: Change concurrent Map
URL: https://github.com/apache/incubator-heron/pull/3107#discussion_r232738669
##########
File path:
storm-compatibility/src/java/org/apache/storm/metric/api/MultiCountMetric.java
##########
@@ -36,7 +36,7 @@ public CountMetric scope(String key) {
}
public Object getValueAndReset() {
- Map<String, Object> ret = new HashMap<>();
+ Map<String, Object> ret = new ConcurrentHashMap<>();
Review comment:
HashMap should be good here I think.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services