How can I kill my realtime node?

Hi~

I am testing Druid 0.7.3 for our production cluster.

When I command "kill ", the node print the below log but the process is not killed for several hours.

com.metamx.common.lifecycle.Lifecycle - Running shutdown hook

What do I need to check?

"kill -9 " is worked but I think this is not normal so I want to know a good way.

2015년 6월 8일 월요일 오후 10시 18분 15초 UTC+9, Munchang Jeong 님의 말:

Hi Munchang, after you issue the kill command, are there additional logs that the process prints? If you issue a kill -15 to more cleanly shut down the process, does it still take that long?

Hi, Fangjin.

After kill -15, I can see below.

2015-06-15T06:02:32,089 INFO [Thread-44] com.metamx.common.lifecycle.Lifecycle - Running shutdown hook

2015-06-15T06:02:55,596 INFO [Thread-44] com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler - Invoking stop method[public void io.druid.server.coordination.AbstractDataSegmentAnnouncer.stop()] on object[io.druid.server.coordination.BatchDataSegmentAnnouncer@1bb40b8d].

2015-06-15T06:02:55,597 INFO [Thread-44] io.druid.server.coordination.AbstractDataSegmentAnnouncer - Stopping class io.druid.server.coordination.BatchDataSegmentAnnouncer with config[io.druid.server.initialization.ZkPathsConfig@58d3f4be]

2015-06-15T06:03:00,784 INFO [Thread-44] io.druid.curator.announcement.Announcer - unannouncing [/druid/announcements/<realtime_host>:]

but the node is not killed.

2015년 6월 9일 화요일 오후 1시 28분 59초 UTC+9, Fangjin Yang 님의 말:

Hmmm, interesting that the kill -15 doesn’t exist the process. Is there any improvement if you issue kill -2? What about kill -1?

If you run into this situation again, can you please post a stack trace? (jstack -l [pid]). That should show what the node is getting stuck on during shutdown.

Hi~ Fangjin, Gino.
After I got a this situation again, I will tell you.

(This is every time to kill in my case but I can’t kill the node anytime to test.)

Thanks.

2015년 6월 17일 수요일 오전 2시 21분 47초 UTC+9, Gian Merlino 님의 말:

Hi~ Fangjin, Gino.
After I got a this situation again, I will tell you.

(This is every time to kill in my case but I can’t kill the node anytime to test.)

Thanks.

2015년 6월 17일 수요일 오전 2시 21분 47초 UTC+9, Gian Merlino 님의 말: