Marvel error: ArrayIndexOutOfBoundsException

I saw this in our Elasticsearch logs this morning and was wondering if there is somewhere more appropriate to report the issue (it doesn't seem to have caused anything bad to actually happen) ...

[2016-06-27 09:14:18,988][ERROR][marvel.agent.collector.node] [Paul Bailey] collector [node-stats-collector] - failed collecting data
java.lang.ArrayIndexOutOfBoundsException: 0
at org.elasticsearch.action.support.nodes.BaseNodesResponse.getAt(BaseNodesResponse.java:72)
at org.elasticsearch.marvel.agent.collector.node.NodeStatsCollector.doCollect(NodeStatsCollector.java:88)
at org.elasticsearch.marvel.agent.collector.AbstractCollector.collect(AbstractCollector.java:99)
at org.elasticsearch.marvel.agent.AgentService$ExportingWorker.run(AgentService.java:187)
at java.lang.Thread.run(Thread.java:745)

Hi David,

This was fixed in the latest release of Marvel.

The issue is that, while polling for node stats, we actually don't get any back sometimes. This is naturally an unexpected situation and it was not handled correctly. Fortunately, this just means that that collector gets skipped for that time interval -- no real negative side effects occur.

Hope that helps

1 Like