Details
Description
The following script fails with KEY_EEXISTS
#!/usr/bin/env python
|
|
from couchbase.bucket import Bucket
|
import couchbase.subdocument as SD
|
|
cb = Bucket('couchbase://localhost/test')
|
|
cb.upsert('0', {'recs':[]})
|
|
#fails
|
result = cb.lock('0', ttl=5)
|
cb.mutate_in('0', SD.array_append('recs', 1), cas=result.cas)
|
Dean Proctor has also verified this fails with Java as well, so this isn't a client bug.
Attachments
Issue Links
- blocks
-
MB-22188 4.6.2 Minor Release
-
- Closed
-
For Gerrit Dashboard: MB-22044 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
72120,7 | MB-22044: Subdoc should detect and handle locked items | master | memcached | Status: ABANDONED | +1 | +1 |
72233,1 | DJR: MB-22044: Subdoc should detect and handle locked items | master | memcached | Status: ABANDONED | -1 | -1 |
72904,3 | MB-22044: EWBEngineMode::SetItemCas (1/3) | watson | memcached | Status: MERGED | +2 | +1 |
72905,3 | MB-22044: ewouldblock_engine_configure: Allow to pass key (2/3) | watson | memcached | Status: MERGED | +2 | +1 |
72906,3 | MB-22044: Subdoc should detect and handle locked items (3/3) | watson | memcached | Status: MERGED | +2 | +1 |
75115,6 | Merge remote-tracking branch 'couchbase/watson' into spock | master | memcached | Status: MERGED | +2 | +1 |
Activity
Field | Original Value | New Value |
---|---|---|
Description |
The following script fails with KEY_EEXISTS
{code} #!/usr/bin/env python from couchbase.bucket import Bucket import couchbase.subdocument as SD cb = Bucket('couchbase://localhost/test') cb.upsert('0', {'recs':[]}) #fails result = cb.lock('0', ttl=5) cb.mutate_in('0', SD.array_append('recs', 1), cas=result.cas) {code} |
The following script fails with KEY_EEXISTS
{code} #!/usr/bin/env python from couchbase.bucket import Bucket import couchbase.subdocument as SD cb = Bucket('couchbase://localhost/test') cb.upsert('0', {'recs':[]}) #fails result = cb.lock('0', ttl=5) cb.mutate_in('0', SD.array_append('recs', 1), cas=result.cas) {code} [~dproctor] has also verified this fails with Java as well, so this isn't a client bug. |
Fix Version/s | 4.6.1 [ 13903 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Link | This issue blocks CBSE-4111 [ CBSE-4111 ] |
Is this maybe the same issue as
MB-21597? i.e. as the code uses REPLACE instead of CAS internally, any non-zero input CAS will fail?Mark Nunberg could you check if it still occurs on 4.6.0 / latest watson branch?