# Marvel agent issue with elasticsearch 1.4.5

**URL:** <https://discuss.elastic.co/t/marvel-agent-issue-with-elasticsearch-1-4-5/23437>\
**Category:** Elasticsearch\
**Created:** [April 28, 2015, 12:48pm UTC](https://discuss.elastic.co/t/marvel-agent-issue-with-elasticsearch-1-4-5/23437 "2015-04-28T12:48:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurvinder\_Singh](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Gurvinder\_Singh](https://discuss.elastic.co/u/Gurvinder_Singh)\
**Post date:** [April 28, 2015, 12:48pm UTC](https://discuss.elastic.co/t/marvel-agent-issue-with-elasticsearch-1-4-5/23437/1 "2015-04-28T12:48:44Z")

</div>

Today we upgraded the cluster to recent Elasticsearch 1.4 branch, after  
upgrade we are seeing this message in the master logs.

[2015-04-28 14:40:47,942][ERROR][marvel.agent] [els-master]  
Exporter [es\_exporter] has thrown an exception:  
java.lang.NullPointerException  
at  
org.elasticsearch.index.cache.query.QueryCacheStats.add(QueryCacheStats.java:52)  
at  
org.elasticsearch.action.admin.indices.stats.CommonStats.add(CommonStats.java:389)  
at  
org.elasticsearch.action.admin.indices.stats.IndicesStatsResponse.getTotal(IndicesStatsResponse.java:117)  
at  
org.elasticsearch.marvel.agent.exporter.ESExporter.exportIndicesStats(ESExporter.java:198)  
at  
org.elasticsearch.marvel.agent.AgentService$ExportingWorker.exportIndicesStats(AgentService.java:301)  
at  
org.elasticsearch.marvel.agent.AgentService$ExportingWorker.run(AgentService.java:260)  
at java.lang.Thread.run(Thread.java:745)

I tried to install the latest version of marvel, but still the same  
issue. I wonder if someone else is facing it or we have something  
special going on in our setup.

- Gurvinder

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/553F81AC.9030201%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/553F81AC.9030201%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 28, 2015, 1:16pm UTC](https://discuss.elastic.co/t/marvel-agent-issue-with-elasticsearch-1-4-5/23437/2 "2015-04-28T13:16:53Z")

</div>

I would open an issue in Elasticsearch repo.

David

> Le 28 avr. 2015 à 14:48, Gurvinder Singh [gurvindersinghdahiya@gmail.com](mailto:gurvindersinghdahiya@gmail.com) a écrit :
> 
> Today we upgraded the cluster to recent Elasticsearch 1.4 branch, after  
> upgrade we are seeing this message in the master logs.
> 
> [2015-04-28 14:40:47,942][ERROR][marvel.agent] [els-master]  
> Exporter [es\_exporter] has thrown an exception:  
> java.lang.NullPointerException  
> at  
> org.elasticsearch.index.cache.query.QueryCacheStats.add(QueryCacheStats.java:52)  
> at  
> org.elasticsearch.action.admin.indices.stats.CommonStats.add(CommonStats.java:389)  
> at  
> org.elasticsearch.action.admin.indices.stats.IndicesStatsResponse.getTotal(IndicesStatsResponse.java:117)  
> at  
> org.elasticsearch.marvel.agent.exporter.ESExporter.exportIndicesStats(ESExporter.java:198)  
> at  
> org.elasticsearch.marvel.agent.AgentService$ExportingWorker.exportIndicesStats(AgentService.java:301)  
> at  
> org.elasticsearch.marvel.agent.AgentService$ExportingWorker.run(AgentService.java:260)  
> at java.lang.Thread.run(Thread.java:745)
> 
> I tried to install the latest version of marvel, but still the same  
> issue. I wonder if someone else is facing it or we have something  
> special going on in our setup.
> 
> - Gurvinder
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/553F81AC.9030201%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/553F81AC.9030201%40gmail.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/FCBCB58A-30DB-40BE-B4D3-928F8C801897%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/FCBCB58A-30DB-40BE-B4D3-928F8C801897%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Gurvinder\_Singh](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Gurvinder\_Singh](https://discuss.elastic.co/u/Gurvinder_Singh)\
**Post date:** [April 28, 2015, 1:24pm UTC](https://discuss.elastic.co/t/marvel-agent-issue-with-elasticsearch-1-4-5/23437/3 "2015-04-28T13:24:03Z")

</div>

It truns out the problem was caused by mix of nodes during our rolling  
upgrade. So when cluster with nodes from 1.3.6 & 1.4.5 will face the  
problem I mentioned below. Once all nodes are upgraded to 1.4.5, marvel  
issue went away. Useful to know while upgrade 🙂

- Gurvinder  
On 04/28/2015 02:48 PM, Gurvinder Singh wrote:

> Today we upgraded the cluster to recent Elasticsearch 1.4 branch, after  
> upgrade we are seeing this message in the master logs.
> 
> [2015-04-28 14:40:47,942][ERROR][marvel.agent] [els-master]  
> Exporter [es\_exporter] has thrown an exception:  
> java.lang.NullPointerException  
> at  
> org.elasticsearch.index.cache.query.QueryCacheStats.add(QueryCacheStats.java:52)  
> at  
> org.elasticsearch.action.admin.indices.stats.CommonStats.add(CommonStats.java:389)  
> at  
> org.elasticsearch.action.admin.indices.stats.IndicesStatsResponse.getTotal(IndicesStatsResponse.java:117)  
> at  
> org.elasticsearch.marvel.agent.exporter.ESExporter.exportIndicesStats(ESExporter.java:198)  
> at  
> org.elasticsearch.marvel.agent.AgentService$ExportingWorker.exportIndicesStats(AgentService.java:301)  
> at  
> org.elasticsearch.marvel.agent.AgentService$ExportingWorker.run(AgentService.java:260)  
> at java.lang.Thread.run(Thread.java:745)
> 
> I tried to install the latest version of marvel, but still the same  
> issue. I wonder if someone else is facing it or we have something  
> special going on in our setup.
> 
> - Gurvinder

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/553F89FB.9040500%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/553F89FB.9040500%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:17am UTC](https://discuss.elastic.co/t/marvel-agent-issue-with-elasticsearch-1-4-5/23437/4 "2017-07-06T00:17:25Z")

</div>


