mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Flush until it succeeds
This commit is contained in:
parent
ddecf89a28
commit
a5bfa5526b
1 changed files with 3 additions and 1 deletions
|
@ -101,7 +101,9 @@ class LogStash::Outputs::ElasticSearchHTTP < LogStash::Outputs::Base
|
|||
event.to_json
|
||||
].join("\n")
|
||||
|
||||
flush if @queue.size >= @flush_size
|
||||
# Keep trying to flush while the queue is full.
|
||||
# This will cause retries in flushing if the flush fails.
|
||||
flush while @queue.size >= @flush_size
|
||||
end # def receive_bulk
|
||||
|
||||
def flush
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue