Herman van Hovell created SPARK-11449:
-----------------------------------------

             Summary: Improve documentation on close behavior of 
PortableDataStream
                 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to