[ 
https://issues.apache.org/jira/browse/AVRO-1594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

MrBinary updated AVRO-1594:
---------------------------
    Environment: Windows

> AVRO Enumeration Issue Python/Java
> ----------------------------------
>
>                 Key: AVRO-1594
>                 URL: https://issues.apache.org/jira/browse/AVRO-1594
>             Project: Avro
>          Issue Type: Bug
>          Components: java, python
>    Affects Versions: 1.7.7
>         Environment: Windows
>            Reporter: MrBinary
>
> Hello everybody,
> I tried to do a serialization between a Java Server and Python client and I 
> noticed a bug with the enumeration.
> Context :
> My implementation is really simple. It's a JAVA HttpServer which is able to 
> receive messages from a client. 
> If the message has a length higher than 140 characters, the server doesn't 
> display the message and returns a "KO" status with an error message to the 
> client.
> Otherwise, the server displays the message and returns an "OK" status without 
> message.
> Analysis :
> I tried to do this implementation between Java Server and Java Client and it 
> worked well. Nevertheless, when I tried between Java Server and Python 
> Client, the status is "inverted" : 
> I sent a message lower than 140 characters -> Result status is "KO", Java 
> Server display my message.
> I sent a message higher than 140 characters -> Result status is "OK" , Java 
> server didn't display my message and returned a message.
> Conclusion :
> So I think there is a problem between serialization of an Enumeration between 
> Java and Python using Avro.
> If you want to test by yourself, you can clone the project repository : 
> https://github.com/user4me/AvroEnumerationIssue.git



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to