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 Components#teardown! NoMethodError #1023

Merged
merged 1 commit into from
May 5, 2020

Conversation

delner
Copy link
Contributor

@delner delner commented May 5, 2020

Fixes #1021

This line was collecting old Statsd instances and shutting them down if not in use on teardown!. Looks like somehow we were getting nil Statsd instances in for metrics, and this array did not compact them out, resulting in the function attempting to nil.close.

Added a compact and test to address the issue.

@delner delner requested review from a team and marcotc May 5, 2020 15:29
@delner delner self-assigned this May 5, 2020
@delner delner added bug Involves a bug community Was opened by a community member labels May 5, 2020
Copy link
Member

@marcotc marcotc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@delner delner added the core Involves Datadog core libraries label May 5, 2020
@delner delner merged commit c8e2fa4 into master May 5, 2020
@delner delner deleted the fix/components_teardown_nil_stats branch May 5, 2020 16:02
@marcotc marcotc added this to the 0.35.1 milestone May 5, 2020
@delner delner linked an issue May 12, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Involves a bug community Was opened by a community member core Involves Datadog core libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v0.35.0: NoMethodError 'close' when running Rails migrations Failed to deploy after 0.35.0 upgrade
2 participants