-
Notifications
You must be signed in to change notification settings - Fork 1.7k
config: error configure_plugins_type on invalid properties #10296
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
82e5741
to
ea1ea67
Compare
511c426
to
e85d7f7
Compare
e85d7f7
to
ffffa03
Compare
677fc73
to
df46f10
Compare
thanks @leonardo-albertovich, again. I've pushed a fix. |
i'll try to follow https://github.com/fluent/fluent-bit-docs/blob/master/CONTRIBUTING.md, i'll post back when i've updated the commits. |
77ef771
to
7130d74
Compare
ok, @leonardo-albertovich I think my commits should conform to the contributing guide. what happens next? do you merge it if it passes? |
Nope, it passes, I approve it, tag it if possible and ping @edsiper so he merges it when he considers it appropriate. |
After this change, when a plugin configuration contains an invalid property, `configure_plugins_type` returns an error which ultimately crashes fluentbit, instead of only printing an error log and continuing on. The change also fixes a small issue where `name` was printed by `flb_error` after it was freed. To properly test this change and get the test to pass with `-DSANITIZE_ADDRESS=On` on all platforms, I had to update `configure_plugins_type` to free objects that it fails to instantiate. Signed-off-by: Bradley Laney <[email protected]>
f1a0272
to
48f4886
Compare
After this change, when a plugin configuration contains an invalid property,
configure_plugins_type
returns an error which ultimately crashes fluentbit, instead of only printing an error log and continuing on. The change also fixes a small issue wherename
was printed byflb_error
after it was freed. To properly test this change and get the test to pass with-DSANITIZE_ADDRESS=On
on all platforms, I had to updateconfigure_plugins_type
to free objects that it fails to instantiate.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:
Added tests, so the configuration files and outputs can be found there.
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.