You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Tibor Benke (JIRA)" <ji...@apache.org> on 2013/08/14 13:46:26 UTC
[jira] [Updated] (AVRO-1361) The values of a map are not correct
[ https://issues.apache.org/jira/browse/AVRO-1361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tibor Benke updated AVRO-1361:
------------------------------
Attachment: main.c
Sample program to demonstrate the bug.
> The values of a map are not correct
> -----------------------------------
>
> Key: AVRO-1361
> URL: https://issues.apache.org/jira/browse/AVRO-1361
> Project: Avro
> Issue Type: Bug
> Components: c
> Affects Versions: 1.7.4
> Environment: Ubuntu 12.10
> Reporter: Tibor Benke
> Attachments: main.c
>
>
> When I put values into a map, the values appear delayed with one cycle:
> // pseudo code
> map = Map()
> for (i = 0; i < 5; i++) {
> map.put(i, i)
> }
> // then map contains the following elements: {"0": "1", "1": "2", "2": "3", "3": "4", "4": ""}
> I wrote a sample code, which demonstrates the bug. I hope I'm not wrong. I have also problems with the reference counting: if I comment out the free() calls in the program, I get glibc errors. Is it possible, that the Avro frees not just its own pointers in the *decref() calls?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira