Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
5.0.0
-
None
-
-
Untriaged
-
Centos 64-bit
-
Unknown
Description
based on requirements : The XATTR key (X-Key) is a Modified UTF-8 string up to 16 bytes in length
k = 'xattrs' |
self.client.upsert(k, {}) |
|
# Try to upsert a single xattr
|
self.client.mutate_in(k, SD.upsert('g'*1024, 1, create_parents=True)) - PASS |
self.client.mutate_in(k, SD.upsert('f' * 1025, 2, create_parents=True)) - FAILED with CouchbaseInternalError |
result:
|
Traceback (most recent call last):
|
File pytests/subdoc/subdoc_xattr_sdk.py, line 126, in test_key_length
|
self.client.mutate_in(k, SD.upsert('f' * 1025, 2, create_parents=True))
|
File /usr/local/lib/python2.7/dist-packages/couchbase-2.2.0.dev2+g18f32fd-py2.7-linux-x86_64.egg/couchbase/bucket.py, line 783, in mutate_in
|
return super(Bucket, self).mutate_in(key, specs, **kwargs)
|
LCB_0x4B (generated, catch: CouchbaseInternalError): <Key='xattrs', RC=0x4B[A badly formatted packet was sent to the server. Please report this in a bug], Operational Error, Results=1, C Source=(src/multiresult.c,309)>
|
there are 2 issues here:
1) I use key 'g'*1024( 1061 bytes in python) and this does not comply "Modified UTF-8 string up to 16 bytes in length"
2) with big key size for xattr we get CouchbaseInternalError
Attachments
Issue Links
- relates to
-
PYCBC-378 CouchbaseInternalError when size of key for xattr too big
- Closed