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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.5
    • 1.7.6
    • c
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: