[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org