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

Java: Single-record encoding marker bytes check is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.8.2
    • java
    • None

    Description

      It looks like the check for correct marker bytes is incorrect.

      The check should validate both marker/version bytes match what is expected, but is instead this:

      if (! (BinaryMessageEncoder.V1_HEADER[0] == header[0])
          && BinaryMessageEncoder.V1_HEADER[1] == header[1]) { . . . }
      

      Attachments

        1. AVRO-1888.1.patch
          3 kB
          Ryan Blue

        Issue Links

          Activity

            People

              rdblue Ryan Blue
              rdblue Ryan Blue
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: