make worker thread names visbile to OS, fixes #9968

Fixes #9973
This commit is contained in:
Donal Diamond 2018-09-10 12:35:12 +00:00 committed by Ry Biesemeyer
parent df6eac4df4
commit 234add03dc
2 changed files with 2 additions and 2 deletions

View file

@ -217,7 +217,7 @@ module LogStash; class JavaPipeline < JavaBasePipeline
lir_execution, filter_queue_client, @events_filtered, @events_consumed,
@flushRequested, @flushing, @shutdownRequested, @drain_queue).run
end
thread.name="[#{pipeline_id}]>worker#{t}"
Util.set_thread_name("[#{pipeline_id}]>worker#{t}")
@worker_threads << thread
end

View file

@ -284,7 +284,7 @@ module LogStash; class Pipeline < BasePipeline
thread = Thread.new(batch_size, batch_delay, self) do |_b_size, _b_delay, _pipeline|
_pipeline.worker_loop(_b_size, _b_delay)
end
thread.name="[#{pipeline_id}]>worker#{t}"
Util.set_thread_name("[#{pipeline_id}]>worker#{t}")
@worker_threads << thread
end