Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Identity Map stability issues #214
Looks like there might be a problem with the identity map. Maybe a threading issue ?
Reproduced, neo4j (2.2.1-java). Here's my stuff:
class ApplicationController < ActionController::Base def current_user #User.find(1) #raise 'abcde' User.find(1) end helper_method :current_user end
My page calls current user, User 1, which exists. What happens is this:
This issue has been remedied by adding the following line to application.rb:
config.neo4j.identity_map = false
And testing its disabled status via the console:
Neo4j::Config[:identity_map] => false
Note that the syntax
maybe the problem is that the IdentityMap is not cleared when an exception occurs.
Maybe we need to clear it hear as well:
Btw, nice to see you back !