Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not retain span logger created with index set initialized at query time #14027

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

sandeepsukhani
Copy link
Contributor

What this PR does / why we need it:
While investigating the memory usage of index gateways, I came across an instance where the logger was doing too many allocations coming from specifically here. It turns out we were creating a span logger at query time and retaining it with the index set initialized at query time.

Screenshot 2024-09-02 at 4 24 08 PM

This PR fixes the issue by not using span logger while initializing index sets.

@sandeepsukhani sandeepsukhani merged commit 4e41744 into main Sep 2, 2024
61 checks passed
@sandeepsukhani sandeepsukhani deleted the index-shipper-logger-alloc-fix branch September 2, 2024 11:46
sandeepsukhani added a commit that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants