gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alparslan Avcı <alparslan.a...@agmlab.com>
Subject Re: About Putting Same Value to Same Key
Date Thu, 16 Jan 2014 15:05:28 GMT
Opened GORA-290 about this issue.

Regards,
Alparslan Avcı

On 16-01-2014 16:51, Alparslan Avcı wrote:
> Hi Renato,
>
> I'm using Hbase as backend; however this is about gora-core, a bug in 
> StatefulHashMap.
>
> I will open an issue and upload a patch as soon as possible.
>
> Thanks,
> Alparslan Avcı
>
> On 16-01-2014 16:42, Renato Marroquín Mogrovejo wrote:
>> Hi there,
>>
>> Yeah this for sure looks like a bug.
>> Could you tell us which back end you are using please?
>> Thanks!
>>
>> Renato M.
>> On Jan 16, 2014 9:08 AM, "Alparslan Avcı" <alparslan.avci@agmlab.com> 
>> wrote:
>>
>>> Hi all,
>>>
>>> I've noticed that (in trunk) when we set the same value to the same 
>>> key in
>>> any avro-generated object's map field, it removes the key from the 
>>> map. For
>>> example; after running this code piece,
>>>
>>>     WebPage webPage = dataStore.newPersistent();
>>>     webPage.putToOutlinks(new Utf8("anchor0"), new Utf8("url0"));
>>>     webPage.putToOutlinks(new Utf8("anchor0"), new Utf8("url0"));
>>>     webPage.putToOutlinks(new Utf8("anchor2"), new Utf8("url2"));
>>>     dataStore.put(webPage.getUrl().toString(), webPage);
>>>     dataStore.flush();
>>>
>>>
>>> it only stores {"anchor2", "url2"} pair.
>>>
>>> Is it an intended coding? If it is not, I will upload a bug-fix 
>>> about this
>>> issue.
>>>
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message