You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/11/02 16:50:28 UTC
[jira] [Assigned] (SPARK-11449) PortableDataStream should be a
factory
[ https://issues.apache.org/jira/browse/SPARK-11449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-11449:
------------------------------------
Assignee: Apache Spark
> 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
> Assignee: Apache Spark
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org