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

ConcurrentModificationException in ConnectiveStrategy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.4.6
    • 3.7.0
    • process
    • None

    Description

      I encountered a "ConcurrentModificationException" during a particularly difficult Gremlin query, on this specific line of code:

                          currentStep.getLabels().forEach(currentStep::removeLabel);
      

      ( ConnectiveStrategy.java:98 )

       

      "currentStep.getLabels()" is a "LinkedHashSet", and it doesn't support concurrent iteration and modification.

       

      Proposed fix: add a "clearLabels()" method to "AbstractStep".

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            dwernerm Dylan Werner-Meier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: