avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Lewi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AVRO-850) Python protocol parsing doesn't set message error union to ['string'] when no errors declared
Date Mon, 04 Jul 2011 14:51:21 GMT
Python protocol parsing doesn't set message error union to ['string'] when no errors declared
---------------------------------------------------------------------------------------------

                 Key: AVRO-850
                 URL: https://issues.apache.org/jira/browse/AVRO-850
             Project: Avro
          Issue Type: Bug
          Components: python
    Affects Versions: 1.5.0
            Reporter: Jeremy Lewi
            Assignee: Jeremy Lewi


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.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message