Skip to content

[9.0](backport #5317) Reset trace headers for bulk items when returning to pool#5352

Merged
michel-laterman merged 1 commit into9.0from
mergify/bp/9.0/pr-5317
Aug 26, 2025
Merged

[9.0](backport #5317) Reset trace headers for bulk items when returning to pool#5352
michel-laterman merged 1 commit into9.0from
mergify/bp/9.0/pr-5317

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Aug 26, 2025

What is the problem this PR solves?

Bulker items can have a previous item's trace links.

How does this PR solve the problem?

Clear the reference to the trace link in the block's reset method. This method is called before a block is put back in the sync.Pool.

Note that this fix would only apply to functions using the bulker without a transaction tied to their context.


This is an automatic backport of pull request #5317 done by Mergify.

* Reset trace headers

* Add pr ref to changelog

(cherry picked from commit 138a4e0)
@mergify mergify bot added the backport label Aug 26, 2025
@mergify mergify bot requested a review from a team as a code owner August 26, 2025 22:19
@mergify mergify bot requested review from pchila and ycombinator August 26, 2025 22:19
@mergify mergify bot added the backport label Aug 26, 2025
@prodsecmachine
Copy link

prodsecmachine commented Aug 26, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@github-actions github-actions bot added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Aug 26, 2025
@michel-laterman michel-laterman enabled auto-merge (squash) August 26, 2025 23:17
@michel-laterman michel-laterman merged commit e4cc0a4 into 9.0 Aug 26, 2025
10 checks passed
@michel-laterman michel-laterman deleted the mergify/bp/9.0/pr-5317 branch August 26, 2025 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

2 participants