You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org> on 2011/08/03 04:12:27 UTC

[jira] [Created] (AVRO-869) Lifetimes of streams and encoder/decoders not managed propertly

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

        

[jira] [Updated] (AVRO-869) Lifetimes of streams and encoder/decoders not managed propertly

Posted by "Thiruvalluvan M. G. (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thiruvalluvan M. G. updated AVRO-869:
-------------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed revision 1182350.
                
> 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.
>             Fix For: 1.6.0
>
>         Attachments: AVRO-869.patch
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AVRO-869) Lifetimes of streams and encoder/decoders not managed propertly

Posted by "Thiruvalluvan M. G. (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124032#comment-13124032 ] 

Thiruvalluvan M. G. commented on AVRO-869:
------------------------------------------

If there are no objections, I'll commit this tomorrow.
                
> 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.
>             Fix For: 1.6.0
>
>         Attachments: AVRO-869.patch
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AVRO-869) Lifetimes of streams and encoder/decoders not managed propertly

Posted by "Thiruvalluvan M. G. (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thiruvalluvan M. G. updated AVRO-869:
-------------------------------------

    Fix Version/s: 1.6.0
           Status: Patch Available  (was: Open)
    
> 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.
>             Fix For: 1.6.0
>
>         Attachments: AVRO-869.patch
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AVRO-869) Lifetimes of streams and encoder/decoders not managed propertly

Posted by "Thiruvalluvan M. G. (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thiruvalluvan M. G. updated AVRO-869:
-------------------------------------

    Attachment: AVRO-869.patch

This patch has the solution and a test that could (but not always) crash without the fix.
                
> 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.
>             Fix For: 1.6.0
>
>         Attachments: AVRO-869.patch
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira