neo4j/community — pull request #789 by jakewins (2012-08-16 14:51:48+00:00)
Title: InvalidRecordException -> NotFoundException

This covers a set of cases where we read one entity just as another thread has deleted it, resulting in InvalidRecordException. We now check for these cases, and rethrow the error as NotFoundException instead, so as to not freak out users.

This takes @tinwelint's work, adds test coverage for all cases listed and covers two more cases found.