Github user zhzhan commented on the issue:

    https://github.com/apache/spark/pull/18694
  
    If it is assumed that the pipeline is as simple as one stage only has one 
operator need to spill, you are right. But if the pipeline is more complex, for 
example multiple operator needs to spill, this leak can cause serious issue.
    
    A more elegant way is to expose a new interface, e.g., close() for 
RowIterator. If it is agreed, we can implement that and solve the issue without 
overhead.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to