Repository navigation
Conversation
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Locked destination reservation plugins/out_file/file.c |
The file context adds a lock for destination-table reservations. Destinations are reserved during resolution, before file opening. |
Limit behavior across destination modes plugins/out_file/file.c |
Explicit max_dynamic_files limits now also apply to tag-derived paths when out_file is unset. Without that explicit setting, tag-derived paths retain their prior unlimited behavior. Failed opens count toward the limit. |
Limit and failure tests tests/integration/scenarios/out_file/tests/test_destination_limit.py, tests/runtime/out_file.c |
Tests cover tag and accessor destinations, configured limits and overflow actions, fallback output, and failed opens. |
Priority:
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Bug fix
Suggested reviewers: sagiroosto
Merge Risk: 
Minimal · up to 46742
-
No merge-blocking issue was identified in the destination-limit changes. The reviewed reservation path preserves the configured cap and overflow behavior.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 10.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 10 functions across 3 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Fixes File output ignoring explicitly configured
max_dynamic_fileslimits when filenames come from tags. For example, withmax_dynamic_files 8, additional tag destinations now followon_limit_reachedinstead of creating more files.Destination lookup and reservation are synchronized across output workers. Destinations are reserved before rotation or file creation, so failed opens also consume slots and cannot accumulate uncounted rotation entries.
For compatibility, tag-based configurations that omit
max_dynamic_filesretain unlimited behavior. Setting it to0explicitly remains unlimited.Validation:
dynamic_destination,fallback_destination,open_failure_releases_lock): all passed.ctest --test-dir build -R '^flb-rt-out_file$' --output-on-failure tests/integration/.venv/bin/python -m pytest tests/integration/scenarios/out_file -q VALGRIND=1 VALGRIND_STRICT=1 tests/integration/.venv/bin/python -m pytest tests/integration/scenarios/out_file -qEnter
[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-testlabel 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.
Summary by CodeRabbit