You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Douglas Creager (JIRA)" <ji...@apache.org> on 2013/12/18 14:16:10 UTC

[jira] [Resolved] (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 ]

Douglas Creager resolved AVRO-1361.
-----------------------------------

    Resolution: Not A Problem

> 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-fixed.c, 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 was sent by Atlassian JIRA
(v6.1.4#6159)