Skip to content
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

Using Frames Adjacency "set" method causes orphaned edge references on the vertex #5083

Closed
allanmoso opened this issue Oct 9, 2015 · 0 comments
Labels

Comments

@allanmoso
Copy link

When using tinkerpop Frames, we noticed that there were warning messages on our logs:

Record (%s) is null

We realized that this starts appearing after an adjacency is overwritten using a set method annotated with tinkerpop frames' @Adjacency.

While debugging the AdjacencyAnnotationHandler here's what I learned:

  • The set method is a combination of two operations: remove all the edges (of that specific label) from the vertex, and then add the new edge.
  • Ultimately, the OrientEdge.remove is called which deletes the edge as well as remove the references from both the out and in vertex associated to the edge from their corresponding ORidBag (references are replaced with tombstone markers).
  • The problem that I've seen is that after the remove operation the original Vertex instance (in the AdjacencyAnnotationHandler) still has the references to the deleted edges.
  • When the addEdge operation happens, I believe, it is overwriting the state of the vertex.

Let me know if I can help with providing more information.

@allanmoso allanmoso changed the title Using Frames Adjacency "set" method causes orphaned @rid on the vertex Using Frames Adjacency "set" method causes orphaned edge references on the vertex Oct 9, 2015
@lvca lvca added the bug label Oct 15, 2015
@laa laa closed this as completed Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants