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

Remove of a key with user XAttrs but no system XATTRs fails (with: Internal error. No reallocations should happend when pruning user attributes)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Morpheus
    • Morpheus
    • memcached
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Build Introduced issue : couchbase-server-enterprise-7.2.0-1087 (passes with 1086 build)

       

      Repro:

      Create file t.sql with following sql statements

      UPSERT INTO lkm VALUES("k01",{"a":1}), VALUES("k02",{"a":1});
      BEGIN WORK;
      DELETE FROM lkm USE KEYS ["k01", "k02"];
      COMMIT;

       

      rpm --erase couchbase-server;rm -rf /opt/couchbase/
      rpm -i http://latestbuilds.service.couchbase.com/builds/latestbuilds/couchbase-server/morpheus/1087/couchbase-server-enterprise-7.2.0-1087-centos7.x86_64.rpm
      sleep 15
      couchbase-cli cluster-init -c localhost --cluster-username Administrator --cluster-password password --services data,index,query --cluster-ramsize 2648 --cluster-index-ramsize 1024
      sleep 5
      couchbase-cli bucket-create -c localhost -u Administrator -p password --bucket lkm --bucket-type couchbase --bucket-ramsize 256 --bucket-replica 0
      sleep 5
      /opt/couchbase/bin/cbq -e=127.0.0.1:8093 -u=Administrator -p=password < t.sql

       

      2022-05-02T10:24:40.242977-07:00 ERROR 88: Exception occurred during packet execution. Closing connection: RemoveCommandContext::rebuildXattr: Internal error. No reallocations should happend when pruning user attributes. Cookies: [{"aiostat":"success","connection":"[ {\"ip\":\"127.0.0.1\",\"port\":40890} - {\"ip\":\"127.0.0.1\",\"port\":11210} (System, <ud>@cbq-engine</ud>) ]","engine_storage":"0x0000000000000000","ewouldblock":false,"packet":{"bodylen":8,"cas":0,"datatype":"raw","extlen":0,"frameid":{"durability":{"level":"Majority","timeout":2500}},"key":"<ud>.k01</ud>","keylen":4,"magic":"AltClientRequest","opaque":184549376,"opcode":"DELETE","vbucket":347},"refcount":0}]
      2022-05-02T10:24:40.243111-07:00 INFO 84: Client {"ip":"127.0.0.1","port":40884} authenticated as <ud>@cbq-engine</ud>
      2022-05-02T10:24:40.243114-07:00 ERROR 86: Exception occurred during packet execution. Closing connection: RemoveCommandContext::rebuildXattr: Internal error. No reallocations should happend when pruning user attributes. Cookies: [{"aiostat":"success","connection":"[ {\"ip\":\"127.0.0.1\",\"port\":40888} - {\"ip\":\"127.0.0.1\",\"port\":11210} (System, <ud>@cbq-engine</ud>) ]","engine_storage":"0x0000000000000000","ewouldblock":false,"packet":{"bodylen":8,"cas":0,"datatype":"raw","extlen":0,"frameid":{"durability":{"level":"Majority","timeout":2500}},"key":"<ud>.k02</ud>","keylen":4,"magic":"AltClientRequest","opaque":117440512,"opcode":"DELETE","vbucket":82},"refcount":0}] 

      Attachments

        For Gerrit Dashboard: MB-52003
        # Subject Branch Project Status CR V

        Activity

          People

            Sitaram.Vemulapalli Sitaram Vemulapalli
            Sitaram.Vemulapalli Sitaram Vemulapalli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty