Ruby on Rails
Thursday, September 20, 2018
In rails/activerecord/lib/active_record.rb, why are some classes autoloaded while other are eager_autoloaded?
Specifically, I'm looking into an error with the message "uninitialized constant ActiveRecord::Core::ClassMethods::StatementCache Did you mean? ActiveRecord::StatementCache". This recently showed up in my Sidekiq process logs, but happens infrequently and I haven't been able to reproduce it. It seems like a concurrency bug with class-loading in ActiveRecord - could it happen when a process gets restarted and multiple threads are trying to load ActiveRecord classes at the same time?
-- Specifically, I'm looking into an error with the message "uninitialized constant ActiveRecord::Core::ClassMethods::StatementCache Did you mean? ActiveRecord::StatementCache". This recently showed up in my Sidekiq process logs, but happens infrequently and I haven't been able to reproduce it. It seems like a concurrency bug with class-loading in ActiveRecord - could it happen when a process gets restarted and multiple threads are trying to load ActiveRecord classes at the same time?
Any pointers would be helpful. Thanks!
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ccc0dbcd-0b47-4128-8ce7-e7615a47a3b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment