Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-22600

CouchbaseInternalError when key size > 1024 bytes

    XMLWordPrintable

Details

    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ingenthr Matt Ingenthron
              andreibaranouski Andrei Baranouski
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty