{"action":"created","issue":{"url":"https://api.github.com/repos/neo4j/neo4j/issues/5055","labels_url":"https://api.github.com/repos/neo4j/neo4j/issues/5055/labels{/name}","comments_url":"https://api.github.com/repos/neo4j/neo4j/issues/5055/comments","events_url":"https://api.github.com/repos/neo4j/neo4j/issues/5055/events","html_url":"https://github.com/neo4j/neo4j/issues/5055","id":97939657,"number":5055,"title":"InvalidRecordException: DynamicRecord Not in use","user":{"login":"arikan","id":6969,"avatar_url":"https://avatars.githubusercontent.com/u/6969?v=3","gravatar_id":"","url":"https://api.github.com/users/arikan","html_url":"https://github.com/arikan","followers_url":"https://api.github.com/users/arikan/followers","following_url":"https://api.github.com/users/arikan/following{/other_user}","gists_url":"https://api.github.com/users/arikan/gists{/gist_id}","starred_url":"https://api.github.com/users/arikan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arikan/subscriptions","organizations_url":"https://api.github.com/users/arikan/orgs","repos_url":"https://api.github.com/users/arikan/repos","events_url":"https://api.github.com/users/arikan/events{/privacy}","received_events_url":"https://api.github.com/users/arikan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-29T13:46:29Z","updated_at":"2015-07-30T18:30:43Z","closed_at":null,"body":"Hi there,\r\n\r\nWe're on Neo4j 2.2.1 on Ubuntu EC2 instance.\r\n\r\nWe're stuck with `InvalidRecordException: DynamicRecord Not in use` error. This is extremely urgent as it is a live database. \r\n\r\nAmong our User records, two of them somehow got corrupt property `user.encrypted_password`, any time we try to access them we get the error below: \r\n\r\n```\r\norg.neo4j.kernel.impl.store.InvalidRecordException: DynamicRecord Not in use, blockId[54752]\r\n```\r\n\r\nTo demonstrate: \r\n\r\n```\r\nMATCH (u:User)\r\nWHERE u.email IN ['...@gmail.com', '...@hotmail.com']\r\nRETURN u.email\r\n```\r\n\r\nreturns: \r\n\r\n```\r\nu.email\r\n...@gmail.com\r\n...@hotmail.com\r\n```\r\n\r\n```\r\nMATCH (u:User)\r\nWHERE u.email IN ['...@gmail.com', '...@hotmail.com']\r\nRETURN u.encrypted_password\r\n```\r\n\r\nreturns:\r\n\r\n```\r\norg.neo4j.kernel.impl.store.InvalidRecordException: DynamicRecord Not in use, blockId[85070]\r\n Neo.DatabaseError.Statement.ExecutionFailure\r\n```\r\n\r\nWe cannot delete this node, change its fault property, or remove its label: \r\n\r\n```\r\nMATCH (u:User)\r\nWHERE u.email IN ['...@gmail.com', '...@hotmail.com']\r\nSET u:UserFault\r\n```\r\n\r\nreturns:\r\n\r\n```\r\norg.neo4j.kernel.api.exceptions.TransactionFailureException: Validation of index updates failed\r\n Neo.DatabaseError.Transaction.CouldNotCommit\r\n```\r\nWhen we look at the `graph.db/messages.log` we see this error is caused by the `DynamicRecord Not in Use` as well. \r\n\r\nWe also restarted the database incase it recovers, no luck. \r\n\r\nWe opened the database in  Neo4j 2.2.3, no luck, getting the same errors. \r\n\r\nIt seems a relevant issue is also not closed here https://github.com/neo4j/neo4j/issues/4391\r\n\r\nThis is urgent, so any help to recover from this is appretiated. Thanks!"},"comment":{"url":"https://api.github.com/repos/neo4j/neo4j/issues/comments/126426002","html_url":"https://github.com/neo4j/neo4j/issues/5055#issuecomment-126426002","issue_url":"https://api.github.com/repos/neo4j/neo4j/issues/5055","id":126426002,"user":{"login":"arikan","id":6969,"avatar_url":"https://avatars.githubusercontent.com/u/6969?v=3","gravatar_id":"","url":"https://api.github.com/users/arikan","html_url":"https://github.com/arikan","followers_url":"https://api.github.com/users/arikan/followers","following_url":"https://api.github.com/users/arikan/following{/other_user}","gists_url":"https://api.github.com/users/arikan/gists{/gist_id}","starred_url":"https://api.github.com/users/arikan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arikan/subscriptions","organizations_url":"https://api.github.com/users/arikan/orgs","repos_url":"https://api.github.com/users/arikan/repos","events_url":"https://api.github.com/users/arikan/events{/privacy}","received_events_url":"https://api.github.com/users/arikan/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T18:30:43Z","updated_at":"2015-07-30T18:30:43Z","body":"After stopping the neo4j and copying the data folder, the `api.shutdown` freeze is eliminated, it was soemthing to do with locks. Anyway, now we the store-utils works fine. \r\n\r\nHowever, the constraint uniq issue remains, somehow store-utils generate repeating _ids for the same node."}}