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

Possible conflict between acts_as_paranoid and newrelic_rpm #280

Open
mvz opened this issue May 1, 2022 · 0 comments
Open

Possible conflict between acts_as_paranoid and newrelic_rpm #280

mvz opened this issue May 1, 2022 · 0 comments

Comments

@mvz
Copy link
Contributor

mvz commented May 1, 2022

In #93, @glindsey wrote:

I'm running into a similar issue in our codebase which appears to be a conflict between acts_as_paranoid and newrelic_rpm: both attempt to wrap delete_all which results in a callstack looking like:

/gems/activerecord-5.0.7.2/lib/active_record/dynamic_matchers.rb:32 in each
/gems/activerecord-5.0.7.2/lib/active_record/dynamic_matchers.rb:32 in find
/gems/activerecord-5.0.7.2/lib/active_record/dynamic_matchers.rb:32 in match
/gems/activerecord-5.0.7.2/lib/active_record/dynamic_matchers.rb:7 in respond_to?
/gems/activesupport-5.0.7.2/lib/active_support/core_ext/object/try.rb:6 in try
/gems/acts_as_paranoid-0.6.0/lib/acts_as_paranoid/relation.rb:6 in paranoid?
/gems/acts_as_paranoid-0.6.0/lib/acts_as_paranoid/relation.rb:23 in delete_all
/gems/newrelic_rpm-6.2.0.354/lib/new_relic/agent/instrumentation/active_record_prepend.rb:49 in block in delete_all
/gems/newrelic_rpm-6.2.0.354/lib/new_relic/agent/transaction.rb:813 in with_database_metric_name
/gems/newrelic_rpm-6.2.0.354/lib/new_relic/agent.rb:643 in with_database_metric_name
/gems/newrelic_rpm-6.2.0.354/lib/new_relic/agent/instrumentation/active_record_prepend.rb:48 in delete_all
/gems/acts_as_paranoid-0.6.0/lib/acts_as_paranoid/relation.rb:18 in delete_all!
/gems/acts_as_paranoid-0.6.0/lib/acts_as_paranoid/relation.rb:26 in delete_all
/gems/newrelic_rpm-6.2.0.354/lib/new_relic/agent/instrumentation/active_record_prepend.rb:49 in block in delete_all
/gems/newrelic_rpm-6.2.0.354/lib/new_relic/agent/transaction.rb:813 in with_database_metric_name
/gems/newrelic_rpm-6.2.0.354/lib/new_relic/agent.rb:643 in with_database_metric_name
/gems/newrelic_rpm-6.2.0.354/lib/new_relic/agent/instrumentation/active_record_prepend.rb:48 in delete_all
/gems/acts_as_paranoid-0.6.0/lib/acts_as_paranoid/relation.rb:18 in delete_all!
/gems/acts_as_paranoid-0.6.0/lib/acts_as_paranoid/relation.rb:26 in delete_all

...and so on, repeating those six frames over and over until the stack is exhausted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant