hazelcast-code-samples icon indicating copy to clipboard operation
hazelcast-code-samples copied to clipboard

distributed-map locking examples fail

Open karlroberts opened this issue 10 years ago • 4 comments

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 avatar Oct 14 '14 01:10 karlroberts

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

karlroberts avatar Oct 27 '14 05:10 karlroberts

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

pveentjer avatar Oct 27 '14 07:10 pveentjer

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.

pveentjer avatar Oct 27 '14 07:10 pveentjer

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

amoAHCP avatar Aug 04 '16 18:08 amoAHCP