Lifetimes of streams and encoder/decoders not managed propertly
---------------------------------------------------------------
Key: AVRO-869
URL: https://issues.apache.org/jira/browse/AVRO-869
Project: Avro
Issue Type: Bug
Components: c++
Reporter: Thiruvalluvan M. G.
Assignee: Thiruvalluvan M. G.
Encoders and decoders are designed to be used with a single OutputStream and
InputStream respectively. Init() dunction is used to attach a new
OutputStream/InputStream with Encoder/Decoder in place of the current one.
There is no way to cleanly detach the current stream. The init method cleans up
the current stream before detaching it. If the old stream is not valid, it
tries to clean up and crash.
The forthcoming patch will fix this issue.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira