Bulk Insert In Janusgraph #3991
Replies: 3 comments
-
Could you provide the full stacktrace for the exception please? If you see an exception, it won't affect the data you have already successfully committed. |
Beta Was this translation helpful? Give feedback.
-
I made some small changes in my code, but it still fails with Now the code looks like,
Now the issue with the above code I am facing is, sometimes the So, what I do now is, I catch the Exception and if it is due to GRaph Closure, break the loop and push the current msg to a fail queue.
But it still fails with same error StackTrace:
I am unable to figure out the issue here ? and what is the best way to handle this issue ? |
Beta Was this translation helpful? Give feedback.
-
Hi, I found the issue, it was not related to JanusGraph. It was due to some internal health check that my application was doing. Sorry for the misunderstanding. |
Beta Was this translation helpful? Give feedback.
-
I have to insert around 10 million vertices and edges in my Graph. I am using cassandra for backend db and elastic for indexing. I am doing some data pre-processing and then add the vertices like this to the transaction
I add around 500 entries at once and then I commit the data
and this goes on, and it works fine for some time, but after some time, it fails with
NullPointerException: Graph has been closed
.Now my question is, if graph closes and I am not able to commit, than what happens with the data that I have added in the transaction ??. Do I need to reinitialize the graph and then again do the same processing everytime I encounter this error ? or is there any other way to handle such scenario ?
Beta Was this translation helpful? Give feedback.
All reactions