-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
Failing test raises NoMethodError #149
Conversation
I still think we need to figure out exactly why This is the only code that would
Let me know if I don't make sense :) |
I wrote up some thoughts in #148 (comment) Would you prefer to discuss here? |
Are you able to examine any SQL logs you get from requests where your error occurs? It'd be interesting to see how we get down that code path with an empty list. I do have one hunch:
The only flaw in this logic is that the caching for I guess what I'm trying to say is that I'd like to figure out why we're getting this error through concrete reproducible example in the real world. I've had a look at your test, but I can't get my head around how it's managing to manifest the error. Can you outline the code flow for me that would result in the error (at bit like I've done above?). I'm not trying to be a pain :) I'd just like to see if there's a more elegant solution to the problem. |
@brendon we have it happen maybe once a month. I have put f095445 into prod in our app so that maybe I'll pull in something useful in the logs. In the original issue I put in the timing information from the logs. I don't know arel enough to know if it's possibly a query cache issue or something else going on that makes the two queries that look so similar return different truth |
Thanks @bf4, hopefully that will yield some better information. I think at a minimum we probably need to re-look at memoization in these methods as that in some ways doesn't make the best of sense :) |
No description provided.