[ 
https://issues.apache.org/jira/browse/SPARK-11449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14985419#comment-14985419
 ] 

Apache Spark commented on SPARK-11449:
--------------------------------------

User 'hvanhovell' has created a pull request for this issue:
https://github.com/apache/spark/pull/9417

> PortableDataStream should be a factory
> --------------------------------------
>
>                 Key: SPARK-11449
>                 URL: https://issues.apache.org/jira/browse/SPARK-11449
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>            Reporter: Herman van Hovell
>            Priority: Minor
>
> {{PortableDataStream}}'s close behavior caught me by surprise the other day. 
> I assumed incorrectly that closing the inputstream it provides would also 
> close the {{PortableDataStream}}. This leads to quite a confusing situation 
> in when you try to reuse the {{PortableDataStream}}: the state of the 
> {{PortableDataStream}} indicates that it is open, whereas the underlying 
> inputstream is actually closed.
> I'd like either to improve the documentation, or add an {{InputStream}} 
> wrapper that closes the {{PortableDataStream}} when you close the 
> {{InputStream}}. Any thoughts?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to