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