Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-738

BinaryEncoder's init() function does not reset the OutputStream of the embedded SimpleByteWriter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.4.1
    • None
    • java
    • None

    Description

      This is a problem if one is trying to reuse the BinaryEncoder by passing a new OutputStream with the init() method. While the encoder will write all the fields to the new OutputStream, fields that are of type "bytes" do not get written. This effectively means that one needs to create a new BinaryEncoder each time if one is serializing record with a "bytes" field in it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              devsarkar Devajyoti Sarkar
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: