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

Java reader backwards-compatibility breakage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.5
    • java
    • None

    Description

      For some cases where we encode Avro data with Avro 1.7.4, it is not readable with Avro 1.7.5-SNAPSHOT post AVRO-1295: the Java decoder is unable to discover the root definitions

      Among the properties of (some) schemas that trigger this failure:

      • an explicit empty string in the root namespace and
      • uses other namespaces elsewhere in the schema,
      • has a recursive reference to the root

      A sample schema and a sample datafile with one example encoded with that schema are attached.

      This datafile cannot be read with Java deserializers (and I believe that the schema cannot be parsed by the Java schema parser).

      Attachments

        1. AVRO-1331.patch
          1 kB
          Doug Cutting
        2. stripped-snipped.schema
          2 kB
          Jeremy Kahn
        3. stripped-snipped.avro
          0.8 kB
          Jeremy Kahn

        Issue Links

          Activity

            People

              cutting Doug Cutting
              trochee Jeremy Kahn
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: