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

UI sometimes show duplicate entries for index compaction

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0
    • Fix Version/s: bug-backlog
    • Component/s: ns_server
    • Security Level: Public
    • Labels:
    • Environment:
      build 1653 on Ubuntu 64bit
    • Triage:
      Untriaged

      Description

      UI sometimes show duplicate entries for index compaction. Please see attached screenshot.
      The UI shows duplicate entries for index compaction for 'default/_design/d1' and 'default/_design/d2'

      Curling the _active_tasks shows there is no duplicate index compaction process running.

      Below are the steps followed:

      • Create a cluster of 2 nodes
      • Create 2 buckets (default, saslbucket)
      • Load 500K docs in each bucket
        ./lib/perf_engines/mcsoda.py membase://10.3.2.57:8091 vbuckets=128 doc-gen=0 doc-cache=0 ratio-creates=1 ratio-sets=1 ratio-misses=0 min-value-size=256,512 max-items=500000 exit-after-creates=1 prefix=70one
        ./lib/perf_engines/mcsoda.py saslbucket:saslpass@10.3.2.57 vbuckets=128 doc-gen=0 doc-cache=0 ratio-creates=1 ratio-sets=1 ratio-misses=0 min-value-size=256,512 max-items=500000 exit-after-creates=1 prefix=70one
      • Create ddocs/views

      curl -v -X PUT -H 'Content-Type: application/json' 'http://saslbucket:saslpass@10.3.2.57:8092/saslbucket/_design/d1' \
      -d '{"views": { "v1":{"map":"function(doc)

      {\nemit(doc.key,doc.key_num);\n}"}, "v2":{"map":"function(doc,meta){\nemit(meta.id,doc.key);\n}"} }}'
      curl -v -X PUT -H 'Content-Type: application/json' 'http://saslbucket:saslpass@10.3.2.57:8092/saslbucket/_design/d2' \
      -d '{"views": { "v1":{"map":"function(doc){\nemit(doc.key,doc.name);\n}"}, "v2":{"map":"function(doc,meta){\nemit(meta.id,[doc.key_num,doc.key_num]);\n}"} }}'

      curl -v -X PUT -H 'Content-Type: application/json' 'http://10.3.2.57:8092/default/_design/d1' \
      -d '{"views": { "v1":{"map":"function(doc){nemit(doc.key,doc.key_num);n}

      "}, "v2":{"map":"function(doc,meta)

      {\nemit(meta.id,doc.key);\n}

      "} }}'
      curl -v -X PUT -H 'Content-Type: application/json' 'http://10.3.2.57:8092/default/_design/d2' \
      -d '{"views": { "v1":{"map":"function(doc)

      {\nemit(doc.key,doc.name);\n}

      "}, "v2":{"map":"function(doc,meta)

      {\nemit(meta.id,[doc.key_num,doc.key_num]);\n}

      "} }}'

      • Allow initial indexing to finish and then remove and rebalance out 1 node.
      • While rebalance is in progress, run manual compaction for all design docs/views. In the UI, duplicate entries for the index compaction can be observed.

      Diagnostics are attached.

      1. 10.3.2.57-8091-diag.txt.gz
        2.46 MB
        Deepkaran Salooja
      2. 10.3.3.100-8091-diag.txt.gz
        2.01 MB
        Deepkaran Salooja
      1. Compaction.png
        177 kB
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        anil Anil Kumar added a comment -

        Request to reproduce and if issue still there reopen the ticket.

        Show
        anil Anil Kumar added a comment - Request to reproduce and if issue still there reopen the ticket.

          People

          • Assignee:
            alkondratenko Aleksey Kondratenko (Inactive)
            Reporter:
            deepkaran.salooja Deepkaran Salooja
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes