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

The 16-byte, sync marker for file not generated till first record written.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.5.1
    • None
    • java
    • Java 1.6

    Description

      When opening an avro file to be written, the 16-byte, sync marker for file not generated till first record written or the file properly closed. Our usecase has the logs being rotated if they have no open filehandles which means if we open a file and experience an unclean shutdown we get files that throw exceptions on processing. When records are written the sync marker is written on each write which prevents this from being a problem on non-empty files. Can we write the sync marker when the header is written instead of on first record write?

      Attachments

        Activity

          People

            Unassigned Unassigned
            dbritsch Douglas Britsch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: