Skip to content

filter_kubernetes: don't recycle connections in fetch_pod_service_map [Backport to 4.2] - #11867

Merged
cosmo0920 merged 1 commit into
4.2from
kube_pod_leak-4.2
May 28, 2026
Merged

filter_kubernetes: don't recycle connections in fetch_pod_service_map [Backport to 4.2]#11867
cosmo0920 merged 1 commit into
4.2from
kube_pod_leak-4.2

Conversation

@cosmo0920

Copy link
Copy Markdown
Contributor

Backporting of #11600.


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:

  • Example configuration file for the change
  • Debug log output from testing the change
  • Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • Run local packaging test showing all targets (including any new ones) build.
  • Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • Documentation required for this feature

Backporting

  • Backport to latest stable release.

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.

- mark connections as non-recyclable before releasing to free TLS resources
- connections are destroyed instead of pooled since polling runs every 60s anyway

fixes #11523

Signed-off-by: Cameron Sparr <sparrc@users.noreply.github.com>
@cosmo0920
cosmo0920 requested a review from edsiper as a code owner May 28, 2026 09:29
@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9f4ad189-878b-4a60-af4f-88be34533a72

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch kube_pod_leak-4.2

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cosmo0920
cosmo0920 merged commit 5c6b8f4 into 4.2 May 28, 2026
25 checks passed
@cosmo0920
cosmo0920 deleted the kube_pod_leak-4.2 branch May 28, 2026 09:53
@cosmo0920 cosmo0920 added this to the Fluent Bit v4.2.5 milestone May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants