Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-408

Neo4jHelpers.isDeleted(Node) should use getPropertyKeys() instead of getLabels().next()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Done
    • None
    • 3.0.0-incubating
    • neo4j
    • None

    Description

      If a Node without any labels (in my case, from an upgraded Neo4j 1.x database) is passed to this method, the call to next() throws a NoSuchElementException. When it is called from a traversal (e.g. by g.V()) it is interpreted as terminating the traversal. Unfortunately, removing the call to next does not result in an IllegalStateException for a deleted node, but it appears that Node.getPropertyKeys() throws an IllegalStateException on a deleted node, even if the node had no properties before it was deleted. Also see issue TINKERPOP3-131.

      Attachments

        Activity

          People

            Unassigned Unassigned
            greedy Florian Georg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: