elastic/logstash

LogStash should call shutdown hooks

Open

#5,174 创建于 2016年4月22日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Ruby (3,496 fork)batch import
bughelp wanted

仓库指标

Star
 (14,197 star)
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.

贡献者指南