Open fancyremarker opened 10 years ago
I should add that when I wrap the above Thing.find
call in a begin ; rescue ; end
block, I'm able to call Thing.find
within the rescue and it works as expected. So I feel like there's some thread safety issue whereby @aliases
is not properly set on the cloned object.
This exception has been appearing for us frequently, but not deterministically. I'm having a very hard time pinpointing what's going wrong, but am happy to debug further if you have any hints or intuition about what might be causing the bug.
The full backtrace is as follows. This is on Origin 1.1.0, Mongoid 3.1.4 and Ruby 1.9.3-p448.