[add_kubernetes_metadata] Fixes indefinite block when Close() is called#50897
[add_kubernetes_metadata] Fixes indefinite block when Close() is called#50897khushijain21 wants to merge 4 commits into
Close() is called#50897Conversation
🤖 GitHub commentsJust comment with:
|
Close() is called
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Close() is calledClose() is called
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds context-aware control flow to the Kubernetes processor initialization, enabling graceful cancellation and explicit error propagation. The validation for Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
TL;DR
Remediation
Investigation detailsRoot CauseThe failure is in
The commit under test ( Evidence
Verification
Follow-up
Note 🔒 Integrity filter blocked 2 itemsThe following items were blocked because they don't meet the GitHub integrity level.
To allow these resources, lower tools:
github:
min-integrity: approved # merged | approved | unapproved | noneWhat is this? | From workflow: PR Buildkite Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Proposed commit message
If
wait_for_metadata:falseandwait_metadata_timeout:0sis set. It retries indefinitely until connection succeeds.But if
Close()is called on the processor, it never returns as it is blocked on retrying.This PR fixes that and uses context to cancel any ongoing connection retries.
Checklist
stresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.Disruptive User Impact
None