mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
fix missing method worker_threads_draining?
in ruby pipeline (#15013)
This commit adds the missing method `worker_threads_draining?` to ruby pipeline which is added in #13934 to java pipeline for log msg improvement Fixed: #15010
This commit is contained in:
parent
0e5d0a9eb9
commit
71d64a96a2
1 changed files with 7 additions and 0 deletions
|
@ -659,6 +659,13 @@ module LogStash; class Pipeline < BasePipeline
|
|||
}
|
||||
end
|
||||
|
||||
# This is for backward compatibility of ruby engine. ShutdownWatcherExt.start() requires this method
|
||||
# In java pipeline, the return boolean indicates if PQ is draining
|
||||
# By giving false, log msg works in the same way prior to queue drain log msg improvement #13934
|
||||
def worker_threads_draining?
|
||||
false
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def close_plugin_and_ignore(plugin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue