[ 
https://issues.apache.org/jira/browse/AVRO-906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121002#comment-13121002
 ] 

Douglas Kaminsky commented on AVRO-906:
---------------------------------------

Thanks for the quick response. As an FYI, our use case is concerned with having 
a reliably reproducible string representation that we can use to create an MD5 
hash for comparison. We don't rely on it for any other runtime behaviors.
                
> Inconsistent ordering of field props 
> -------------------------------------
>
>                 Key: AVRO-906
>                 URL: https://issues.apache.org/jira/browse/AVRO-906
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>            Reporter: Douglas Kaminsky
>            Assignee: Doug Cutting
>             Fix For: 1.6.0
>
>         Attachments: AVRO-906.patch, PTest.java
>
>
> 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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to