elastic/logstash

LogStash should call shutdown hooks

開放

#5,174 建立於 2016年4月22日

 (2 則留言) (0 個反應) (0 位負責人)Ruby (3,496 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (14,197 顆星)
PR 合併指標
 (平均合併 4天 19小時) (30 天內合併 50 個 PR)

描述

Currently, LogStash will shutdown by waiting for events to flush out and then call do_close on plugins. If --allow-unsafe-shutdown is specified then LogStash shutdown watcher will call Kernel.exit after some time.

However, ZeroMQ plugins will block under certain condition (this is by design of ZeroMQ), thus events will never flush out and do_close will never be called. The way to unblock the sockets is by terminating the ZeroMQ context. This can be done allowing a shutdown hook to be called before exiting forcefully.

貢獻者指南