-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[chore][receiver/k8sclusterreceiver] Enable goleak check #30898
Closed
crobert-1
wants to merge
23
commits into
open-telemetry:main
from
crobert-1:goleak_k8sclusterreceiver
Closed
[chore][receiver/k8sclusterreceiver] Enable goleak check #30898
crobert-1
wants to merge
23
commits into
open-telemetry:main
from
crobert-1:goleak_k8sclusterreceiver
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
internal/k8stest
receiver/prometheus
Prometheus receiver
labels
Jan 31, 2024
crobert-1
force-pushed
the
goleak_k8sclusterreceiver
branch
from
January 31, 2024 20:49
affc58c
to
72b6477
Compare
I still believe the leak is occurring in Closing for now until I have an opportunity to come back and investigate more. |
crobert-1
force-pushed
the
goleak_k8sclusterreceiver
branch
from
March 25, 2024 20:27
72b6477
to
3c6350b
Compare
github-actions
bot
added
processor/k8sattributes
k8s Attributes processor
receiver/k8sobjects
receiver/kubeletstats
labels
Mar 25, 2024
github-actions
bot
requested review from
fatsheep9146,
hvaghani221 and
rmfitzpatrick
March 25, 2024 22:04
github-actions
bot
added
cmd/configschema
configschema command
exporter/datadog
Datadog components
labels
Mar 26, 2024
github-actions
bot
requested review from
dineshg13,
liustanley,
mackjmr,
mx-psi and
songy23
March 26, 2024 21:24
github-actions
bot
added
cmd/configschema
configschema command
exporter/alertmanager
exporter/datadog
Datadog components
processor/k8sattributes
k8s Attributes processor
receiver/k8sobjects
receiver/kubeletstats
labels
Mar 26, 2024
crobert-1
added
Skip Changelog
PRs that do not require a CHANGELOG.md entry
and removed
exporter/datadog
Datadog components
processor/k8sattributes
k8s Attributes processor
receiver/kubeletstats
receiver/k8sobjects
exporter/alertmanager
cmd/configschema
configschema command
labels
Mar 26, 2024
github-actions
bot
added
processor/k8sattributes
k8s Attributes processor
receiver/kubeletstats
labels
Mar 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
internal/k8stest
processor/k8sattributes
k8s Attributes processor
receiver/k8scluster
receiver/k8sobjects
receiver/kubeletstats
Skip Changelog
PRs that do not require a CHANGELOG.md entry
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Enable
goleak
checks to ensure no goroutines are being leaked by this receiver. This is a test only change, as some calls toShutdown
were missing.Also, as explained in #31047,
internal/k8stest
was leaking goroutines. This PR now fixes that issue by closing idle HTTP client connections during Shutdown. This is required due to a bug in thek8s/client-go
package. The added functionality is a workaround described here.Link to tracking Issue:
#30438
Resolves #31047
Testing:
All existing tests are passing, as well as added
goleak
check.