rzo1 opened a new issue, #2336: URL: https://github.com/apache/stormcrawler/issues/2336
Since #2242, `StatusMetricsBolt` (OpenSearch) reports its `status.count` gauge as a `java.util.concurrent.ConcurrentHashMap`; in 3.5.1 it was a `HashMap`. Storm registers `HashMap` with Kryo by default, but not `ConcurrentHashMap`. When the topology has more than one worker and a V1 metrics consumer is registered (as in the OpenSearch archetype), the data points go to the consumer through Kryo and the `status_metrics` executor dies, taking its worker down: ``` java.lang.RuntimeException: com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException: Class is not registered: java.util.concurrent.ConcurrentHashMap Serialization trace: value (org.apache.storm.metric.api.IMetricsConsumer$DataPoint) ``` Found while testing 4.0.0 RC1 on Storm 3.2.0 with 4 workers. Workaround: add `java.util.concurrent.ConcurrentHashMap` to `topology.kryo.register`. The gauge should return a `HashMap` copy of the counts. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
