Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-899

pillowfight doesn't compress documents when doing mutations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Major
    • None
    • 2.8.4
    • tools
    • None
    • Local build. SHA: 1f8bbfeb7724a9ce0b9c941b69fa2b222296ed1c

    Description

      Repro:

      ./cbc-pillowfight --password password --batch-size 1 --num-items 20000000 --num-threads 1 --min-size 512 --max-size 512 --json --spec couchbase://172.23.133.13/bucket-1?ipv6=allow --set-pct 100 --num-cycles 1 --no-population --compress --compress -v -v
      Running. Press Ctrl-C to terminate...
      0ms [I768250c0] {53125} [INFO] (instance - L:462) Version=2.8.4_27_g1f8bbfe, Changeset=1f8bbfeb7724a9ce0b9c941b69fa2b222296ed1c
      0ms [I768250c0] {53125} [INFO] (instance - L:463) Effective connection string: couchbase://172.23.133.13/bucket-1?ipv6=allow&console_log_level=3&. Bucket=bucket-1
      12ms [I768250c0] {53125} [INFO] (instance - L:146) DNS SRV lookup failed: DNS/Hostname lookup failed. Ignore this if not relying on DNS SRV records
      12ms [I768250c0] {53125} [DEBUG] (instance - L:83) Adding host 172.23.133.13:8091to initial HTTP bootstrap list
      12ms [I768250c0] {53125} [DEBUG] (instance - L:83) Adding host 172.23.133.13:11210to initial CCCP bootstrap list
      12ms [I768250c0] {53125} [DEBUG] (confmon - L:85) Preparing providers (this may be called multiple times)
      12ms [I768250c0] {53125} [DEBUG] (confmon - L:92) Provider CCCP is ENABLED
      12ms [I768250c0] {53125} [DEBUG] (confmon - L:92) Provider HTTP is ENABLED
      12ms [I768250c0] {53125} [INFO] (cccp - L:151) Requesting connection to node 172.23.133.13:11210 for CCCP configuration
      12ms [I768250c0] {53125} [DEBUG] (lcbio_mgr - L:448) <172.23.133.13:11210> (HE=0xccc3b0) Creating new connection because none are available in the pool
      12ms [I768250c0] {53125} [INFO] (connection - L:474) <172.23.133.13:11210> (SOCK=19092c92156d9f8e) Starting. Timeout=2000000us
      12ms [I768250c0] {53125} [DEBUG] (connection - L:238) <172.23.133.13:11210> (SOCK=19092c92156d9f8e) Created new socket with FD=6
      12ms [I768250c0] {53125} [INFO] (connection - L:147) <172.23.133.13:11210> (SOCK=19092c92156d9f8e) Connected established
      12ms [I768250c0] {53125} [DEBUG] (connection - L:106) <172.23.133.13:11210> (SOCK=19092c92156d9f8e) Successfully set TCP_NODELAY
      12ms [I768250c0] {53125} [DEBUG] (connection - L:106) <172.23.133.13:11210> (SOCK=19092c92156d9f8e) Successfully set TCP_KEEPALIVE
      12ms [I768250c0] {53125} [DEBUG] (lcbio_mgr - L:318) <172.23.133.13:11210> (HE=0xccc3b0) Received result for I=0xccc650,C=(nil); E=0x0
      12ms [I768250c0] {53125} [DEBUG] (lcbio_mgr - L:278) <172.23.133.13:11210> (HE=0xccc3b0) Assigning R=0xcc7400 SOCKET=0xccc8b0
      12ms [I768250c0] {53125} [DEBUG] (ioctx - L:101) <172.23.133.13:11210> (CTX=0xccd220,unknown) Pairing with SOCK=19092c92156d9f8e
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:404) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) HELLO identificator: {"a":"libcouchbase/2.8.4_27_g1f8bbfe (Linux-4.4.0-101-generic; x86_64; GNU 5.4.0)","i":"00000000768250c0/19092c92156d9f8e"}
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:408) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Request feature: 0x2 (TLS)
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:408) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Request feature: 0x6 (XATTR)
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:408) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Request feature: 0xb (JSON)
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:408) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Request feature: 0x8 (Select bucket)
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:408) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Request feature: 0x7 (XERROR)
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:408) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Request feature: 0x3 (TCP nodelay)
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:408) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Request feature: 0xa (Snappy)
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:434) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Server supports feature: 0x3 (TCP nodelay)
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:434) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Server supports feature: 0x6 (XATTR)
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:434) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Server supports feature: 0x7 (XERROR)
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:434) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Server supports feature: 0x8 (Select bucket)
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:434) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Server supports feature: 0xa (Snappy)
      12ms [I768250c0] {53125} [DEBUG] (negotiation - L:434) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Server supports feature: 0xb (JSON)
      13ms [I768250c0] {53125} [INFO] (negotiation - L:487) <172.23.133.13:11210> (CTX=0xccd220,sasl,SASLREQ=0xccd050) Sending SELECT_BUCKET
      14ms [I768250c0] {53125} [DEBUG] (ioctx - L:151) <172.23.133.13:11210> (CTX=0xccd220,sasl) Destroying context. Pending Writes=0, Entered=true, Socket Refcount=1
      14ms [I768250c0] {53125} [DEBUG] (ioctx - L:101) <172.23.133.13:11210> (CTX=0xccd9f0,unknown) Pairing with SOCK=19092c92156d9f8e
      14ms [I768250c0] {53125} [DEBUG] (ioctx - L:151) <172.23.133.13:11210> (CTX=0xccd9f0,bc_cccp) Destroying context. Pending Writes=0, Entered=true, Socket Refcount=1
      14ms [I768250c0] {53125} [INFO] (lcbio_mgr - L:498) <172.23.133.13:11210> (HE=0xccc3b0) Placing socket back into the pool. I=0xccc650,C=0xccc8b0
      14ms [I768250c0] {53125} [INFO] (confmon - L:158) Setting new configuration. Received via CCCP
      14ms [I768250c0] {53125} [DEBUG] (bootstrap - L:56) Instance configured
      15ms [I768250c0] {53125} [DEBUG] (confmon - L:85) Preparing providers (this may be called multiple times)
      15ms [I768250c0] {53125} [DEBUG] (confmon - L:92) Provider CCCP is ENABLED
      18ms [I768250c0] {53127} [INFO] (lcbio_mgr - L:441) <172.23.133.13:11210> (HE=0xccc3b0) Found ready connection in pool. Reusing socket and not creating new connection
      18ms [I768250c0] {53127} [DEBUG] (lcbio_mgr - L:278) <172.23.133.13:11210> (HE=0xccc3b0) Assigning R=0x7f8b1000a040 SOCKET=0xccc8b0
      18ms [I768250c0] {53127} [DEBUG] (ioctx - L:101) <172.23.133.13:11210> (CTX=0x7f8b1000a160,unknown) Pairing with SOCK=19092c92156d9f8e
      

      /opt/couchbase/bin/cbstats -b bucket-1 -p password 127.0.0.1:11210 all | grep ep_active_datatype
       ep_active_datatype_json:                               1
       ep_active_datatype_json,xattr:                         0
       ep_active_datatype_raw:                                0
       ep_active_datatype_snappy:                             19999999
       ep_active_datatype_snappy,json:                        0
       ep_active_datatype_snappy,json,xattr:                  0
       ep_active_datatype_snappy,xattr:                       0
       ep_active_datatype_xattr:                              0
      

      Attachments

        1. 11210.pcap
          18 kB
        2. mutation.png
          mutation.png
          198 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            pavelpaulau Pavel Paulau (Inactive)
            pavelpaulau Pavel Paulau (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty