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

Avro-c may not handle eof correctly if avro data file contains multiple sync markers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.5
    • Fix Version/s: 1.7.6
    • Component/s: c
    • Labels:
      None

      Description

      I encountered a bug in the Avro C API. If the following is done, it seems that the Avro data file reader can not read the file correctly

      while (has values to write) {
      	Open file for writing
      	Write a value to the file
      	Close the writer
      }
      

      Reading this file with Avro data file reader fails with EOF after only the first item has been read from the file.

        Attachments

        1. AVRO-1405.patch
          5 kB
          Douglas Creager
        2. AVRO-1405.patch
          5 kB
          Mika Ristimaki

          Issue Links

            Activity

              People

              • Assignee:
                mristima Mika Ristimaki
                Reporter:
                mristima Mika Ristimaki
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: