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

C++ Consumers cannot deserialise new enum values as per specification

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.10.2
    • None
    • c++
    • None
    • C++

    Description

      AVRO-1340 use default to allow old readers to specify default enum value when encountering new enum symbols - ASF JIRA (apache.org) describes a useful change made a few years ago in Avro, such that enums could be expanded (an additional value(s) added) without breaking compatibility - old consumers would simply default to the default value for that enum.

      Unfortunately, in C++, it appears this logic is not implemented and the consumer cannot process messages containing new enum values until it is updated.

      I have: Reviewed issues related to enums, reviewied mailing list emails related to "enum" and not found any prior discussion of this issue

      Attachments

        Activity

          People

            Unassigned Unassigned
            jedrobertson Jed Robertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: