mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
Add test for ordered pipeline flushing fix
This commit is contained in:
parent
713fbfbf14
commit
ad631e464e
1 changed files with 39 additions and 27 deletions
|
@ -776,6 +776,7 @@ describe LogStash::JavaPipeline do
|
||||||
end
|
end
|
||||||
|
|
||||||
context "Periodic Flush" do
|
context "Periodic Flush" do
|
||||||
|
shared_examples 'it flushes correctly' do
|
||||||
let(:config) do
|
let(:config) do
|
||||||
<<-EOS
|
<<-EOS
|
||||||
input {
|
input {
|
||||||
|
@ -816,8 +817,19 @@ describe LogStash::JavaPipeline do
|
||||||
|
|
||||||
pipeline.shutdown
|
pipeline.shutdown
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it_behaves_like 'it flushes correctly'
|
||||||
|
|
||||||
|
context 'with pipeline ordered' do
|
||||||
|
before do
|
||||||
|
pipeline_settings_obj.set("pipeline.workers", 1)
|
||||||
|
pipeline_settings_obj.set("pipeline.ordered", true)
|
||||||
|
end
|
||||||
|
it_behaves_like 'it flushes correctly'
|
||||||
|
end
|
||||||
|
end
|
||||||
context "Periodic Flush that intermittently returns nil" do
|
context "Periodic Flush that intermittently returns nil" do
|
||||||
let(:config) do
|
let(:config) do
|
||||||
<<-EOS
|
<<-EOS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue