Commit 6a27913
authored
feat(in_exec): add command_timeout option to limit child process exec… (#5320)
**Which issue(s) this PR fixes**:
Fixes #5319
**What this PR does / why we need it**:
Adds `command_timeout` option to `in_exec` plugin, mirroring the
existing
`command_timeout` option in `out_exec`.
Currently, `in_exec` calls `child_process_execute` without
`wait_timeout`,
defaulting to `nil` (infinite wait). When the external command hangs,
Fluentd repeatedly shows `previous child process is still running.
skipped.`
with no indication of the actual cause, making troubleshooting
difficult.
`out_exec` already exposes `command_timeout` which maps to
`wait_timeout`
in `child_process_execute`. This PR resolves the inconsistency between
the two plugins.
**Docs Changes**:
fluent/fluentd-docs-gitbook#619
**Release Note**:
Add `command_timeout` option to `in_exec` plugin to kill long-running
child processes and align behavior with `out_exec`.
---------
Signed-off-by: zoklk <bjincheol34@gmail.com>1 parent c603d04 commit 6a27913
2 files changed
Lines changed: 48 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
89 | | - | |
| 91 | + | |
90 | 92 | | |
91 | | - | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
298 | 342 | | |
0 commit comments