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".