rzo1 opened a new issue, #2343:
URL: https://github.com/apache/stormcrawler/issues/2343

   `CollectionMetric` (used by `AbstractQueryingSpout` for 
`spout_query_time_msec`) reports its measurements as a `java.util.LinkedList`, 
which Storm doesn't register with Kryo 
(`topology.fall.back.on.java.serialization` defaults to `false`).
   
   When the topology has more than one worker and a V1 metrics consumer is 
registered, the data points go to the consumer through Kryo and the spout 
executor dies, taking its worker down:
   
   ```
   java.lang.RuntimeException: com.esotericsoftware.kryo.KryoException: 
java.lang.IllegalArgumentException: Class is not registered: 
java.util.LinkedList
   Serialization trace:
   value (org.apache.storm.metric.api.IMetricsConsumer$DataPoint)
        at 
org.apache.storm.executor.spout.SpoutExecutor.acceptTupleAction(SpoutExecutor.java:319)
   ```
   
   Found while testing 4.0.0 RC2 with an OpenSearch topology on 4 workers (the 
worker restarted 57 times in 15 minutes). Not a regression: 3.5.1 has the same 
code. Workaround: add `java.util.LinkedList` to `topology.kryo.register`.
   
   Same kind of problem as #2336; `getValueAndReset()` should return an 
`ArrayList`, which Storm registers.


-- 
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]

Reply via email to