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ı" <[email protected]> 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.


Reply via email to