Github user pauljackson commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/548#discussion_r98972948
  
    --- Diff: 
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/GraphStep.java
 ---
    @@ -164,13 +164,13 @@ public int hashCode() {
         }
     
         /**
    -     * Attemps to close an underlying iterator if it is of type {@link 
CloseableIterator}. Graph providers may choose
    +     * Attempts to close an underlying iterator if it is of type {@link 
CloseableIterator}. Graph providers may choose
          * to return this interface containing their vertices and edges if 
there are expensive resources that might need to
          * be released at some point.
          */
         @Override
         public void close() throws Exception {
    -        if (iterator != null && iterator instanceof CloseableIterator) {
    --- End diff --
    
    `GraphStep` doesn't extend `FlatMapStep`, so it doesn't have access to 
`closeIterator()`, but it can call `CloseableIterator.closeIterator(iterator)`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to