You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
system_config.workers value is wrong when validating config on launching.
When launching the supervisor process, Fluentd validates the config as follows.
(It may be difficult to understand what this code is doing. This just validates the config before launching each worker)
Describe the bug
system_config.workers
value is wrong when validating config on launching.When launching the supervisor process, Fluentd validates the config as follows.
(It may be difficult to understand what this code is doing. This just validates the config before launching each worker)
fluentd/lib/fluent/supervisor.rb
Line 731 in e89092c
This calls
configure()
of each plugin, and tries to find any config error.However,
system_config.workers
value is wrong when we use the multiple workers setting insystem
directive.Interestingly, in the case
<worker 0-N>
, the value is correct.A detailed code survey can be found here.
This can cause bugs in config validation in the future.
We should fix this.
To Reproduce
Use a plugin to print out
system_config.workers
inconfigure()
.I fixed
out_stdout
to reproduce.Then you can see the value is
1
, although you setworkers 2
insystem
directive.Expected behavior
The actual number of workers is printed out.
Your Environment
Your Configuration
Your Error Log
Additional context
No response
The text was updated successfully, but these errors were encountered: