# Cross cluster search causing gateway nodes to reset

**URL:** <https://discuss.elastic.co/t/cross-cluster-search-causing-gateway-nodes-to-reset/120886>\
**Category:** Elasticsearch\
**Created:** [February 21, 2018, 3:58pm UTC](https://discuss.elastic.co/t/cross-cluster-search-causing-gateway-nodes-to-reset/120886 "2018-02-21T15:58:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbailey](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@bbailey](https://discuss.elastic.co/u/bbailey)\
**Post date:** [February 21, 2018, 3:58pm UTC](https://discuss.elastic.co/t/cross-cluster-search-causing-gateway-nodes-to-reset/120886/1 "2018-02-21T15:58:08Z")

</div>

I've moved recently to use cross cluster search to connect my Kibana to two separate clusters instead of using tribe nodes. I am finding certain cases where trying to query from indexes present in only of of the clusters causes the gateway node to reset and my cluster state turns yellow until the node has recovered. All elastic components are version 5.6.2.

If I query the indexes using tribe nodes I have no such problem

My clusters ids are "aws" and "ovh" and the indexes are only in the "aws" cluster  
I have tried using index patterns `*:log-cloudflare-*` or `aws:log-cloudflare-*` and in both cases I get the following error:

Error: Request to Elasticsearch failed: {"error":{"root\_cause":[{"type":"transport\_serialization\_exception","reason":"Failed to deserialize response of type [org.elasticsearch.search.fetch.QueryFetchSearchResult]"}],"type":"search\_phase\_execution\_exception","reason":"all shards failed","phase":"query","grouped":true,"failed\_shards":[{"shard":0,"index":"log-cloudflare-aws-2018.02.21","node":"TOGXlOADSgqMmgFzb568Eg","reason":{"type":"transport\_serialization\_exception","reason":"Failed to deserialize response of type [org.elasticsearch.search.fetch.QueryFetchSearchResult]","caused\_by":{"type":"index\_out\_of\_bounds\_exception","reason":"readerIndex(48) + length(1) exceeds writerIndex(48): UnpooledDuplicatedByteBuf(ridx: 48, widx: 48, cap: 65536, unwrapped: PooledHeapByteBuf(ridx: 6, widx: 48, cap: 65536))"}}}]},"status":500}  
KbnError@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:83:18358](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:83:18358)  
RequestFailure@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:83:19107](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:83:19107)  
callResponseHandlers/\<@[http://kibana.ovh.xcl.ie/bundles/kibana.bundle.js?v=15543:29:12495](http://kibana.ovh.xcl.ie/bundles/kibana.bundle.js?v=15543:29:12495)  
[337]/\</Promise.try@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:82:22229](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:82:22229)  
[337]/\</Promise.map/\<@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:82:21588](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:82:21588)  
[337]/\</Promise.map@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:82:21553](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:82:21553)  
callResponseHandlers@[http://kibana.ovh.xcl.ie/bundles/kibana.bundle.js?v=15543:29:12103](http://kibana.ovh.xcl.ie/bundles/kibana.bundle.js?v=15543:29:12103)  
fetchWithStrategy/\<@[http://kibana.ovh.xcl.ie/bundles/kibana.bundle.js?v=15543:29:366](http://kibana.ovh.xcl.ie/bundles/kibana.bundle.js?v=15543:29:366)  
processQueue@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:38:23621](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:38:23621)  
scheduleProcessQueue/\<@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:38:23888](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:38:23888)  
$eval@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:39:4607](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:39:4607)  
$digest@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:39:2343](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:39:2343)  
$apply@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:39:5026](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:39:5026)  
done@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:37:25016](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:37:25016)  
completeRequest@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:37:28702](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:37:28702)  
createHttpBackend/\</xhr.onload@[http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:37:29634](http://kibana.ovh.xcl.ie/bundles/commons.bundle.js?v=15543:37:29634)

---

<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:** [March 21, 2018, 3:58pm UTC](https://discuss.elastic.co/t/cross-cluster-search-causing-gateway-nodes-to-reset/120886/2 "2018-03-21T15:58:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
