Open kashok7474 opened 1 year ago
I don't fully trace the code path yet, but I think you can avoid
the particular issue by removing timeout
parameter here:
<parse>
@type none
...
timeout 0
</parse>
This seems to be a bug of Fluentd (or maybe `ServeEngine::BlockingFlag). Evidently a parser exception can cause a deadlock here:
https://github.com/fluent/fluentd/blob/master/lib/fluent/plugin/parser.rb#L43
@fujimotos thanks for the update, i will try removing timeout 0
but printing record with pattern not match warning causing this issue.
Describe the bug
Hi Team,
We observed that when Fluentd agent is overwhelmed with "pattern not matched:" warning after some time it gets stuck and stopped processing. Both tailing and flushing buffers are stuck.
To Reproduce
To reproduce this issue we run an experiment on shared configuration.
For each case, the sig dump is attached.
Case 1 : 6:55 AM to 8:10AM Case 2: 8:10 AM to 9:15AM case 3 : 9:15 AM to continue
Sigdump atteched below. case 1
sigdump-2534.log
sigdump-2537.log
case 2
sigdump-22200.log sigdump-22203.log
case 3
sigdump-3975.log sigdump-3978.log
Expected behavior
The agent should not go into a stuck state. Why print log line with pattern not match warning resulting in this issue? @ashie can you look into this? https://github.com/fluent/fluentd/blob/master/lib/fluent/plugin/in_tail.rb#L640
Your Environment
Your Configuration
Your Error Log
Additional context
No response