[JCBC-226] Delete's get() doesnt return the right value Created: 30/Jan/13  Updated: 27/Feb/13  Resolved: 27/Feb/13

Status: Resolved
Project: Couchbase Java Client
Component/s: Core
Affects Version/s: 1.1.0, 1.1.1
Fix Version/s: 1.1.3
Security Level: Public

Type: Bug Priority: Major
Reporter: Balint Ureczky Assignee: Michael Nitschinger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Linux Mint Maya
Couchbase Server 2.0, 1956, 1976
Couchbase Client Java API 1.1.0, 1.1.1

Attachments: Java Source File CouchBaseTester.java     Text File Output.txt    

 Description   
Deleting is faulty, I asked for get() which should wait for the result, but every 5th returns with false, however the deletion has performed.

I have attached a sample code and the output result.


 Comments   
Comment by Balint Ureczky [ 31/Jan/13 ]
I also tested on the 2.0.0 enterprise server (build-1976), which was the same.

The server returns with the error "Key was modified" as you can see in the attached output.txt
Comment by Michael Nitschinger [ 31/Jan/13 ]
To clarify, this error comes up when using the persistence constraints (persist, replicate) in combination. Just out of curiosity, can you try without them and see if it works as expected? Thanks
Comment by Balint Ureczky [ 31/Jan/13 ]
Yes, with the default ReplicateTo.ZERO, PersistTo.ZERO settings, its 1000 times faster and there arent any failure in 100.000 tries.
With ReplicateTo.ZERO, PersistTo.ONE settings, i got ~20 failure in 100 tries.
Comment by Michael Nitschinger [ 27/Feb/13 ]
This will be fixed in 1.1.3, we just pushed some changes that fixes this.
Generated at Fri Aug 22 23:22:23 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.