-
Notifications
You must be signed in to change notification settings - Fork 97
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
JanusGraphVertex added remains in the Graph DB if property already exist #74
Comments
@SarthakGhosh16 sorry for the late response. would you like to create a pull request and contain your code change above? |
@yhwang Sure. I'll create a pull request. Thanks!! |
#75 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
AIM is remove the ghost vertex which is formed which does not consists of all the properties desired since the code error out.
Below snippet calls the function where vertex is added with the properties
Calling function acceptRecord(record) throws an error when Property already exists which is unique and it is trying to add the same Property (key,value).
Since EID already exists, the below code throws an error but the
JanusGraphVertex v = graphTransaction.addVertex(vertexLabel); has already been added which never gets deleted and leaves a ghost vertex.
Will changing the block to try catch work plus using graphTransaction.rollback() or v.remove(), to delete the vertex in the catch block
The text was updated successfully, but these errors were encountered: