Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-381

ability to upsert the xattt key with any names depends on the keys already set in xattrs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • None
    • None
    • None
    • None
    • CB 5.0.0-1710
      couchbase python http://review.couchbase.org/#/c/71923/
      libcouchbase 2.7.1

    Description

      test

              k = 'xattr'
       
              self.client.upsert(k, {})
       
              rv = self.client.mutate_in(k, SD.upsert('integer_extra', 1,
                                                      xattr=True))
              self.assertTrue(rv.success)
       
              rv = self.client.mutate_in(k, SD.upsert('integer', 2,
                                                      xattr=True))    FAILED
      

      test failed when we try to use 'integer' as a key for xattr
      _DocumentNotJsonError_0x45 (generated, catch DocumentNotJsonError): <RC=0x45[Existing document is not valid JSON], Subcommand failure, Results=1, C Source=(src/callbacks.c,394), OBJ=Spec<DICT_UPSERT, 'integer', 262144, 2>>

      logs

      0ms [I0] {9053} [INFO] (instance - L:401) Version=2.7.1_1_g8f2091b, Changeset=8f2091b56b89cda111d5359893d6903df9455229
      0ms [I0] {9053} [INFO] (instance - L:402) Effective connection string: couchbase://172.23.106.88/default. Bucket=default
      0ms [I0] {9053} [DEBUG] (instance - L:77) Adding host 172.23.106.88:8091 to initial HTTP bootstrap list
      0ms [I0] {9053} [DEBUG] (instance - L:77) Adding host 172.23.106.88:11210 to initial CCCP bootstrap list
      432ms [I0] {9053} [INFO] (instance - L:135) DNS SRV lookup failed: DNS/Hostname lookup failed
      432ms [I0] {9053} [DEBUG] (confmon - L:83) Preparing providers (this may be called multiple times)
      432ms [I0] {9053} [DEBUG] (confmon - L:90) Provider CCCP is ENABLED
      432ms [I0] {9053} [DEBUG] (confmon - L:90) Provider HTTP is ENABLED
      432ms [I0] {9053} [TRACE] (confmon - L:252) Start refresh requested
      432ms [I0] {9053} [TRACE] (confmon - L:239) Current provider is CCCP
      432ms [I0] {9053} [INFO] (cccp - L:144) Requesting connection to node 172.23.106.88:11210 for CCCP configuration
      432ms [I0] {9053} [DEBUG] (lcbio_mgr - L:416) <172.23.106.88:11210> (HE=0x7f18c80369b0) Creating new connection because none are available in the pool
      432ms [I0] {9053} [DEBUG] (lcbio_mgr - L:321) <172.23.106.88:11210> (HE=0x7f18c80369b0) Starting connection on I=0x7f18c80061a0
      432ms [I0] {9053} [INFO] (connection - L:450) <172.23.106.88:11210> (SOCK=0x7f18c801c4e0) Starting. Timeout=2000000us
      432ms [I0] {9053} [TRACE] (connection - L:267) <172.23.106.88:11210> (SOCK=0x7f18c801c4e0) Got event handler for new connection
      432ms [I0] {9053} [TRACE] (connection - L:314) <172.23.106.88:11210> (SOCK=0x7f18c801c4e0) Scheduling asynchronous watch for socket.
      654ms [I0] {9053} [TRACE] (connection - L:267) <172.23.106.88:11210> (SOCK=0x7f18c801c4e0) Got event handler for new connection
      654ms [I0] {9053} [INFO] (connection - L:116) <172.23.106.88:11210> (SOCK=0x7f18c801c4e0) Connected 
      655ms [I0] {9053} [DEBUG] (connection - L:123) <172.23.106.88:11210> (SOCK=0x7f18c801c4e0) Successfuly set TCP_NODELAY
      655ms [I0] {9053} [DEBUG] (lcbio_mgr - L:271) <172.23.106.88:11210> (HE=0x7f18c80369b0) Received result for I=0x7f18c80061a0,C=0x7f18c801c4e0; E=0x0
      655ms [I0] {9053} [DEBUG] (lcbio_mgr - L:223) <172.23.106.88:11210> (HE=0x7f18c80369b0) Assigning R=0x7f18c801c490 SOCKET=0x7f18c801c4e0
      655ms [I0] {9053} [DEBUG] (ioctx - L:101) <172.23.106.88:11210> (CTX=0x7f18c8046ad0,unknown) Pairing with SOCK=0x7f18c801c4e0
      1323ms [I0] {9053} [DEBUG] (negotiation - L:378) <172.23.106.88:11210> (SASLREQ=0x7f18c8005060) Found feature 0x3 (TCP NODELAY)
      1323ms [I0] {9053} [DEBUG] (ioctx - L:151) <172.23.106.88:11210> (CTX=0x7f18c8046ad0,sasl) Destroying. PND=0,ENT=1,SORC=1
      1323ms [I0] {9053} [DEBUG] (ioctx - L:101) <172.23.106.88:11210> (CTX=0x7f18c802b4c0,unknown) Pairing with SOCK=0x7f18c801c4e0
      1551ms [I0] {9053} [DEBUG] (ioctx - L:151) <172.23.106.88:11210> (CTX=0x7f18c802b4c0,bc_cccp) Destroying. PND=0,ENT=1,SORC=1
      1551ms [I0] {9053} [INFO] (lcbio_mgr - L:491) <172.23.106.88:11210> (HE=0x7f18c80369b0) Placing socket back into the pool. I=0x7f18c80061a0,C=0x7f18c801c4e0
      1551ms [I0] {9053} [INFO] (confmon - L:153) Setting new configuration. Received via CCCP
      1551ms [I0] {9053} [DEBUG] (bootstrap - L:56) Instance configured!
      1551ms [I0] {9053} [DEBUG] (confmon - L:83) Preparing providers (this may be called multiple times)
      1551ms [I0] {9053} [DEBUG] (confmon - L:90) Provider CCCP is ENABLED
      71796ms [I0] {9053} [INFO] (lcbio_mgr - L:407) <172.23.106.88:11210> (HE=0x7f18c80369b0) Found ready connection in pool. Reusing socket and not creating new connection
      71796ms [I0] {9053} [DEBUG] (lcbio_mgr - L:223) <172.23.106.88:11210> (HE=0x7f18c80369b0) Assigning R=0x7f18c8304850 SOCKET=0x7f18c801c4e0
      71796ms [I0] {9053} [DEBUG] (ioctx - L:101) <172.23.106.88:11210> (CTX=0x7f18c8099630,unknown) Pairing with SOCK=0x7f18c801c4e0
      71796ms [I0] {9053} [DEBUG] (server - L:499) <172.23.106.88:11210> (SRV=0x7f18c8058300,IX=0) Setting initial timeout=2499ms
      83235ms [I0] {9053} [DEBUG] (server - L:422) <172.23.106.88:11210> (SRV=0x7f18c8058300,IX=0) Scheduling next timeout for 2499 ms
      91460ms [I0] {9053} [DEBUG] (server - L:422) <172.23.106.88:11210> (SRV=0x7f18c8058300,IX=0) Scheduling next timeout for 2499 ms
      _DocumentNotJsonError_0x45 (generated, catch DocumentNotJsonError): <RC=0x45[Existing document is not valid JSON], Subcommand failure, Results=1, C Source=(src/callbacks.c,394), OBJ=Spec<DICT_UPSERT, 'integer', 262144, 2>>
      

      the same picture with 'double'

      Attachments

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

        Activity

          People

            andreibaranouski Andrei Baranouski
            andreibaranouski Andrei Baranouski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty