Avro
  1. Avro
  2. AVRO-869

Lifetimes of streams and encoder/decoders not managed propertly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: c++
    • Labels:
      None

      Description

      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.

      1. AVRO-869.patch
        1 kB
        Thiruvalluvan M. G.

        Activity

        Thiruvalluvan M. G. created issue -
        Hide
        Thiruvalluvan M. G. added a comment -

        This patch has the solution and a test that could (but not always) crash without the fix.

        Show
        Thiruvalluvan M. G. added a comment - This patch has the solution and a test that could (but not always) crash without the fix.
        Thiruvalluvan M. G. made changes -
        Field Original Value New Value
        Attachment AVRO-869.patch [ 12498322 ]
        Thiruvalluvan M. G. made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Fix Version/s 1.6.0 [ 12316198 ]
        Hide
        Thiruvalluvan M. G. added a comment -

        If there are no objections, I'll commit this tomorrow.

        Show
        Thiruvalluvan M. G. added a comment - If there are no objections, I'll commit this tomorrow.
        Hide
        Thiruvalluvan M. G. added a comment -

        Committed revision 1182350.

        Show
        Thiruvalluvan M. G. added a comment - Committed revision 1182350.
        Thiruvalluvan M. G. made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        66d 15h 52m 1 Thiruvalluvan M. G. 08/Oct/11 18:04
        Patch Available Patch Available Resolved Resolved
        3d 19h 11m 1 Thiruvalluvan M. G. 12/Oct/11 13:15
        Resolved Resolved Closed Closed
        20d 5h 20m 1 Doug Cutting 01/Nov/11 18:36

          People

          • Assignee:
            Thiruvalluvan M. G.
            Reporter:
            Thiruvalluvan M. G.
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development