# Significance/Role of Action and Gateway forders in elasticsearch server

**URL:** <https://discuss.elastic.co/t/significance-role-of-action-and-gateway-forders-in-elasticsearch-server/174489>\
**Category:** Elasticsearch\
**Created:** [March 29, 2019, 8:03am UTC](https://discuss.elastic.co/t/significance-role-of-action-and-gateway-forders-in-elasticsearch-server/174489 "2019-03-29T08:03:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [March 29, 2019, 8:03am UTC](https://discuss.elastic.co/t/significance-role-of-action-and-gateway-forders-in-elasticsearch-server/174489/1 "2019-03-29T08:03:29Z")

</div>

I would like to know what the files in **action** and **gateway** folder do in general,because while debugging elasticsearch i got some errors in these files.

Thanks

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [March 29, 2019, 8:17am UTC](https://discuss.elastic.co/t/significance-role-of-action-and-gateway-forders-in-elasticsearch-server/174489/2 "2019-03-29T08:17:36Z")

</div>

`org.elasticsearch.gateway` is largely about starting up the cluster after a restart: finding existing shard copies and allocating them, etc.

`org.elasticsearch.action` is where many transport actions are defined, along with their requests and responses.

---

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [March 29, 2019, 8:25am UTC](https://discuss.elastic.co/t/significance-role-of-action-and-gateway-forders-in-elasticsearch-server/174489/3 "2019-03-29T08:25:07Z")

</div>

I have one question, i tried to remove the inter-node communication in elasticsearch by closing the connection in transportService.java.  
I got the following warning logs,  
**[2019-03-29T11:59:01,317][WARN][o.e.g.Gateway] [node-0] failed to fetch state from node**  
**org.elasticsearch.action.FailedNodeException: Failed node [X9b9979VSuyrV4Pt7j6RKA]**

**Caused by: java.lang.IllegalStateException: can't send request to a null connection**  
**[2019-03-29T11:59:31,328][DEBUG][o.e.a.a.c.n.s.TransportNodesStatsAction] [node-0] failed to execute on node [X9b9979VSuyrV4Pt7j6RKA]**  
**java.lang.IllegalStateException: can't send request to a null connection**

But i can send the rest requests that is port 9200 is still accessible .

Does that mean inter-node communication has stopped.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [March 29, 2019, 8:35am UTC](https://discuss.elastic.co/t/significance-role-of-action-and-gateway-forders-in-elasticsearch-server/174489/4 "2019-03-29T08:35:50Z")

</div>

> [@MKU](#):
>
> Does that mean inter-node communication has stopped.

I've no idea. It certainly sounds like something isn't working any more.

---

<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:** [April 26, 2019, 8:35am UTC](https://discuss.elastic.co/t/significance-role-of-action-and-gateway-forders-in-elasticsearch-server/174489/5 "2019-04-26T08:35:54Z")

</div>

Closed on April 26, 2019, 8:35am UTC

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