Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
I am having a similar issue to this:
https://issues.apache.org/jira/browse/GEODE-6152
I have a listener and using this method to capture the object:
public override void AfterCreate(EntryEvent<TKey, TVal> ev)
Then I create an new object and manualy fill it in:
IPdxInstance pdx = (IPdxInstance)ev.NewValue;
DealValues dv = new DealValues();
dv.DealNo = (int)pdx.GetField("DealNo");
...
After that, I instanciate a new class and pass in the dv object
new MakeDeal(dv);
Inside MakeDeal, there are new sets of listeners created. Once everything is processed it stops listening and everything stops on that instance.
The problem:
The properties of 1st new MakeDeal are being overwriten by the 2nd object being droped and picked up at the top AfterCreate(EntryEvent<TKey, TVal> ev), which also does a new MakeDeal.
Things I tried:
setting cache copy-on-read="true"
_cache.CreateRegionFactory(RegionShortcut.PROXY); and CACHING_PROXY
Also am using v1.10.0 apache geode server and apachie geode native client in Windows.
on v.1.9 I tried multithreading and creating tasks, but that throws all sorts of memory errors inside listeners.
I just cant seperate these instances somehow.
And ofcourse, nothing is static in those instances. Help!
EDIT:
these 2 objects are put into the region at the same time (less than 200 ms difference).