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

Python protocol parsing doesn't set message error union to ['string'] when no errors declared

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.5.0
    • None
    • python
    • None

    Description

      This bug applies to the python module.

      According to the protocol specification (http://avro.apache.org/docs/current/spec.html#Messages) when no errors are declared in the protocol for a message, the effective error union is ['string']. The behavior of avro.protocol is not consistent with this specification. In particular if no errors are declared the "errors" property of Message will be None and not an instance of ErrorUnionSchema. Consequently, if a message returns an error an exception gets thrown.

      Patch to follow shortly.

      Attachments

        1. AVRO-850.patch
          2 kB
          Jeremy Lewi

        Activity

          People

            jeremy@lewi.us Jeremy Lewi
            jeremy@lewi.us Jeremy Lewi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: