hazelcast / hazelcast-code-samples

Hazelcast Code Samples
www.hazelcast.org
548 stars 595 forks source link

distributed-map locking examples fail #21

Open karlroberts opened 10 years ago

karlroberts commented 10 years ago

The Non Racy examples fail.

re-create:- run PessimisticUpdateMember twice at the same time, neither result is the expected 2000.

I have found the problem and will submit a pull request to the Maintenance branch.

karlroberts commented 9 years ago

Is this code a dead branch? should I make this fix in Master? Nothing has progressed.

Please bear in mind that if sample demo code fails in a demonstration about the consistency guarantees it could be a reputation killer. In this case it it is the demo code that is flawed not the core product. Please let me know if I should submit this to another branch.

Cheers

pveentjer commented 9 years ago

Sorry for the long delay; I'll have a look at it now.

pveentjer commented 9 years ago

This is going to take me some more time; since I also need to update the book. I'll see if I can get it done this week.

amoAHCP commented 8 years ago

Hi, you should really fix this. This "bug" is really confusing, I thought the issue is in the 3.8-SNAPSHOT code, so I replaced it by the stable 3.6.4 which also did not worked. I had a similar issue before... but I don't really get why @karlroberts solution solves the problem. THX