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

Inconsistent ordering of field props

    XMLWordPrintableJSON

Details

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

    Description

      When a schema/protocol is written and read back in (see attached example) via Protocol.parse, the field ordering is not guaranteed to be preserved because the "Props" object extends HashMap, which has no ordering contract.

      Recommend switching to a Map implementation with an ordering guarantee.

      (Identified in Avro 1.5.1 - please verify against 1.5.4)

      Attachments

        1. AVRO-906.patch
          1 kB
          Doug Cutting
        2. PTest.java
          1 kB
          Douglas Kaminsky

        Activity

          People

            cutting Doug Cutting
            dkaminsky Douglas Kaminsky
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: