-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fluent Bit 1.6 ignores Grace Period #2715
Comments
I cannot reproduce the problem |
@edsiper I can reproduce it with a simple config with the stdout output:
I built Fluent Bit from the latest commit on branch 1.6 on a fresh EC2 instance:
In another window, send it a SIGTERM:
Fluent Bit quits immediately, the 30 second grace period is ignored. I built branch 1.5 on the same instance, and went through the same process, and the Grace period is respected when I send Fluent Bit a SIGTERM. Output continues and you get a message saying that Fluent Bit will quit soon (in 1.6 this message no longer appears):
I went through commits to 1.6 and checked whether or not they have this issue; this commit added it: 70771be And I checked that if you remove the call to We have a large number of AWS customers who have been unable to upgrade to 1.6.x because of this issue. |
@PettitWesley I am trying to reproduce the issue described with 1.6 branch (v1.6.2) and this is the output:
message was triggered which distro and compiler version are you testing this on ? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
If I docker run fluent/fluent-bit:1.8.12 with the following config,
in which
It pauses the input plugin immediately after getting a signal. It exits immediately after flushing whatever has been ingested (it doesn't wait for the 30s grace period, claiming that there are "0 pending tasks". Is this expected behavior? When I docker run fluent/fluent-bit:1.6.1, I get similar behavior: it pauses the input plugin. It does wait the 30s grace period, rather uselessly since it's not ingesting logs anymore. Is that expected behavior as well? Why is there a difference between the 2? |
Bug Report
Describe the bug
Grace period is entirely ignored and fluent bit quits instantly. This happens with both 1.6.0 and 1.6.1
To Reproduce
Send Fluent Bit a sigterm and on shutdown you see:
It also stops immediately, there is no grace period, no wait, it just stops.
Expected behavior
Prior to 1.6, on SigTerm there was a message and then Fluent Bit waited:
And it will actually wait a full 30 seconds...
Your Environment
Additional context
aws/aws-for-fluent-bit#81
The text was updated successfully, but these errors were encountered: