mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
parent
23f6d3972e
commit
240048b88d
1 changed files with 4 additions and 1 deletions
|
@ -477,7 +477,10 @@ module LogStash; class Pipeline < BasePipeline
|
||||||
filter_batch(batch)
|
filter_batch(batch)
|
||||||
end
|
end
|
||||||
flush_filters_to_batch(batch, :final => false) if signal.flush?
|
flush_filters_to_batch(batch, :final => false) if signal.flush?
|
||||||
output_batch(batch) if batch.size > 0
|
if batch.size > 0
|
||||||
|
output_batch(batch)
|
||||||
|
@filter_queue_client.close_batch(batch)
|
||||||
|
end
|
||||||
# keep break at end of loop, after the read_batch operation, some pipeline specs rely on this "final read_batch" before shutdown.
|
# keep break at end of loop, after the read_batch operation, some pipeline specs rely on this "final read_batch" before shutdown.
|
||||||
break if (shutdown_requested && !draining_queue?)
|
break if (shutdown_requested && !draining_queue?)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue