Skip to content

Commit

Permalink
add comment for abnormal rescue
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed May 19, 2016
1 parent bdd051c commit 5a42a11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fluent/root_agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ def flush!
end

def shutdown # Fluentd's shutdown sequence is stop, before_shutdown, shutdown, after_shutdown, close, terminate for plugins
# Thesee method callers does `rescue Exception` to call methods of shutdown sequence as far as possible
# if plugin methods does something like infinite recursive call, `exit`, unregistering signal handlers or others.
# Plugins should be separated and be in sandbox to protect data in each plugins/buffers.

lifecycle_safe_sequence = ->(method, checker) {
lifecycle do |instance, kind|
begin
Expand Down

0 comments on commit 5a42a11

Please sign in to comment.