# Logstash 7.1.0 doesn't stop even if using --pipeline.unsafe\_shutdown

**URL:** <https://discuss.elastic.co/t/logstash-7-1-0-doesnt-stop-even-if-using-pipeline-unsafe-shutdown/183546>\
**Category:** Logstash\
**Created:** [May 30, 2019, 2:10pm UTC](https://discuss.elastic.co/t/logstash-7-1-0-doesnt-stop-even-if-using-pipeline-unsafe-shutdown/183546 "2019-05-30T14:10:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ged](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ged/32/65761_2.png) [@Ged](https://discuss.elastic.co/u/Ged)\
**Post date:** [May 30, 2019, 2:10pm UTC](https://discuss.elastic.co/t/logstash-7-1-0-doesnt-stop-even-if-using-pipeline-unsafe-shutdown/183546/1 "2019-05-30T14:10:16Z")

</div>

Hi guys,

I've just tested Logstash 7.1.0 against my previous version 6.3.1.  
I've noticed when trying to stop 7.1.0 version with SIGTERM (using --pipeline.unsafe\_shutdown option ) it cannot stop. I see:  
`[2019-05-30T09:12:40,538][FATAL][logstash.shutdownwatcher] Forcefully quitting logstash..`  
in logs but process exists and still processes events.

Logstash 6.3.1 have no problem with stopping when using --pipeline.unsafe\_shutdown).  
In this case in see i logs:

```
[2019-05-30T09:12:40,547][FATAL][logstash.shutdownwatcher] Forcefully quitting logstash..
[2019-05-30T09:12:40,914][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

```

I'm not sure but seems like commit "JAVAFICATION: Ported ShutdownWatcher to Java" caused this.  
https://github.com/elastic/logstash/commit/417afd1c5a8d5891f83727828a6488a1dacf622f#diff-61fab6130487b7386c7d23f398bcf7ed

Any ideas ?

Thanks in advance !

---

<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:** [June 27, 2019, 2:10pm UTC](https://discuss.elastic.co/t/logstash-7-1-0-doesnt-stop-even-if-using-pipeline-unsafe-shutdown/183546/2 "2019-06-27T14:10:18Z")

</div>

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