-
Notifications
You must be signed in to change notification settings - Fork 192
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
OSM import fails with InvalidRecordException: NodeRecord[34] not in use #226
Comments
just found out that already happened in Neo4j but should have been fixed: jexp/batch-import/#65 |
happened when testing my FileImporter with one-street.osm from the original Spatial project |
after re-reading the entry at Neo4j I noticed it doesn't apply to batch inserting, I requested something like putting errroneous relationship records at the end of the import, sorry for troubling you, it's most probably none of your business |
or perhaps YOU could make a queue for data an erroneous relationship would be created from? just a try-catch construct, and in the catch block you put a wrapper for the data in a queue so at the end of the import when all nodes are imported you can try again, so it's only an error if the second node is truly not there (and not just yet to be imported), would this make sense? |
I have no idea what the OSM data looks like, as I don't get the importer to import the most simple test cases and finding out from the OSM file might get quite hard, so I have no idea how exactly that would look, or even if it's possible at all |
had this thought because after switching to a normal GraphDatabaseService a quite similar errior appeared:
that looks to me like an equivalent to the error above, just that the call stack is flattened by that the exception is thrown further upwards |
here is a screenshot of my test class: |
BatchInserterManager is just an AutoCloseable wrapping a BatchInserter and shutting it down upon close() so it's basically a mediator between BatchInserter and try-with-resource |
so as I mentioned, a construct for reading in relationships at the end when necessary would help a lot |
perhaps I could try adding it too, I just have to figure out how the OSMImporter works, then get Eclipse to recognize Spatial as project, however I might still get done quickly |
ohh, no, it goes up and down and from inner class out and into the next inner class, I'm too afraid of messing things up to touch this ':-D better you do ;-) |
ok I think I should clarify that I plan to use my self-written library in an experimental project for the company I'm having an internship at, so it does have a bit more weight than just some hobby project |
everything works cleanly when I outcomment the way tag in the OSM but a map without roads is kind of no map right? |
not sure whether this is still up to date, if you can help me at #232 I don't need this any more, and probably you CAN help me there, so doesn't matter anymore |
happened during a normal OSMImporter.importFile(...) call with a BatchInserter on an empty graph database:
The text was updated successfully, but these errors were encountered: