# Bug: Node.stop() is not stopping the threads started by Node.start()

**URL:** <https://discuss.elastic.co/t/bug-node-stop-is-not-stopping-the-threads-started-by-node-start/16997>\
**Category:** Elasticsearch\
**Created:** [April 14, 2014, 8:37am UTC](https://discuss.elastic.co/t/bug-node-stop-is-not-stopping-the-threads-started-by-node-start/16997 "2014-04-14T08:37:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doru\_Sular](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@Doru\_Sular](https://discuss.elastic.co/u/Doru_Sular)\
**Post date:** [April 14, 2014, 8:37am UTC](https://discuss.elastic.co/t/bug-node-stop-is-not-stopping-the-threads-started-by-node-start/16997/1 "2014-04-14T08:37:45Z")

</div>

Hi guys,

I am using java api of elasticsearch. Since Node.start() method is starting  
all the threads needed by elasticsearch, I expect that Node.stop() should  
be able to stop the threads started by Node.start().  
If the stopping is done asynchronously, I expect to have another method to  
check if the node was correctly stopped.

Is there another way to do this?

Thank you very much,  
Doru

--  
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/35f9f306-97c4-4daf-8642-001df38f4c4c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/35f9f306-97c4-4daf-8642-001df38f4c4c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 21, 2014, 12:27pm UTC](https://discuss.elastic.co/t/bug-node-stop-is-not-stopping-the-threads-started-by-node-start/16997/2 "2014-04-21T12:27:52Z")

</div>

Hey,

did you try node.close()

--Alex

On Mon, Apr 14, 2014 at 10:37 AM, Doru Sular [doru.sular@gmail.com](mailto:doru.sular@gmail.com) wrote:

> Hi guys,
> 
> I am using java api of elasticsearch. Since Node.start() method is  
> starting all the threads needed by elasticsearch, I expect that Node.stop()  
> should be able to stop the threads started by Node.start().  
> If the stopping is done asynchronously, I expect to have another method to  
> check if the node was correctly stopped.
> 
> Is there another way to do this?
> 
> Thank you very much,  
> Doru
> 
> --  
> 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/35f9f306-97c4-4daf-8642-001df38f4c4c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/35f9f306-97c4-4daf-8642-001df38f4c4c%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/35f9f306-97c4-4daf-8642-001df38f4c4c%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/35f9f306-97c4-4daf-8642-001df38f4c4c%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> 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/CAGCwEM86E9ta%2BVW0KtwTK-qvLBAgrzAS6yA-HmMDf0%2BfOuW0oQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM86E9ta%2BVW0KtwTK-qvLBAgrzAS6yA-HmMDf0%2BfOuW0oQ%40mail.gmail.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, 1:34am UTC](https://discuss.elastic.co/t/bug-node-stop-is-not-stopping-the-threads-started-by-node-start/16997/3 "2017-07-06T01:34:35Z")

</div>


