-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Remove async-signal-unsafe code from signal handler #10275
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Elliot Levin <[email protected]>
Hey @edsiper, do you have any timeline for reviewing this PR? |
thanks for this contribution. Instead of removing the calls, please provide an alternative solution where the functionality keeps the same. |
Signed-off-by: Elliot Levin <[email protected]>
Hey @edsiper, |
Sorry, I clicked close accidentally. |
I have a few reservations about this, maybe we can figure things out togther :
According to the documentation we should use Unless there is a very strong reason for this PR to be merged I think we should focus on fixing the logical error from the root instead, otherwise we could be making our own lives harder when we have to face this (and maintain the newly added code) in the future. There's a PR from @pwhelan where he's dealing with something related so you might want to talk to him to ensure that you don't end up duplicating the effort and wasting your time. |
This pull request seems to be working on another aspect so it should not interfere. |
The code is from here, as far as I can tell: https://howardhinnant.github.io/date_algorithms.html#civil_from_days. It seems to be derived from this code (same author as the blog where it comes from): https://github.com/HowardHinnant/date/blob/a45ea7c17b4a7f320e199b71436074bd624c9e15/include/date/date.h#L3087 Which seems to be under the MIT license: https://github.com/HowardHinnant/date/blob/master/LICENSE.txt. Maybe not what I was being asked about but there it is. |
Signed-off-by: Elliot Levin <[email protected]>
@leonardo-albertovich I've updated the implementation to use a small buffer for storing signals and then moved the processing of them to the main thread. This is better than trying to shoehorn the functionality into async-safe code. |
@TimeToogo would it be possible for you to share some information on how it's triggering in your deployments? That'd be very helpful. |
@leonardo-albertovich I put some details in #10274, we reload fluent-bit via the API to reload the config after it changes. |
Fixes #10274
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.