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

Block Size - retrieved as negative with Snappy codec.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • 1.8.2
    • 1.8.2
    • java
    • None
    • This was an internal coding issue. Apologize for the same.

    Description

      I am using the snappy codec, the bytes from 0x4fc1 to 0x4fd0,represent 16 byte sync block

      16 byte sync >>    1c 21 91 44 35 f6 7a 76 e1 a6 ce 8f cc bf 11 29

      After that there are two bytes showing 32 and 37 – which are avro long values using zigzag variable encoding.  those decode to 25 and -28. Now the block size reads as negative.

      The Avro tool fail to read the block with following error.

      AvroRuntimeException —  java.io.exception: Block size invalid or too large for this implemenation: -28.

      Also i the sync 16 bytes are missing from the end of the file.   Any idea what's wrong and how we can fix the same.

      Attachments

        1. original-file-2.PNG
          53 kB
          mukesh katariya

        Activity

          People

            Unassigned Unassigned
            jmukesh mukesh katariya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: