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

duplicate results when retrieving all_docs due to duplicate in sequence tree on the database file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.0
    • 2.0
    • storage-engine
    • Security Level: Public

    Description

      Can be reproduced on a 5 node VM cluster with the following test:
      ./testrunner -i <5-node-ini-file> -t view.createdeleteview.CreateDeleteViewTests.rebalance_in_with_ddoc_ops,ddoc_ops=create,test_with_view=True,nodes_in=3,num_ddocs=1,num_views_per_ddoc=1,items=20000

      Test is doing the following steps:
      1. Create default bucket on single node
      2. Load 20k json docs with below format:

      { "age": 5, "first_name": "name1" }

      2. Rebalance in 3 nodes
      3. While the rebalance is in progress create 1 ddoc and view and do stale=ok query
      dev_ddoc0 details : {"views": {"views0": {"map": "function (doc)

      { emit(doc.age, doc.first_name);}

      "}}}
      http://10.3.3.95:8092/default/_design/dev_ddoc0/_view/views0?stale=ok

      4. After rebalance is finished, do the full_set query:
      http://10.3.3.95:8092/default/_design/dev_ddoc0/_view/views0?stale=false&connection_timeout=60000&full_set=true

      The view query returns 20115 rows.

      Surprisingly this is not reproducible on a 4-node cluster even though the test is not using the 5th node but always reproducible when run with a 5-node ini file as in jenkins. Couldn't reproduce it on cluster_run.

      Diagnostics are attached.

      Attachments

        1. 0001-assert-no-duplicates-in-save_docs.patch
          1 kB
        2. 10.3.3.104-8091-diag.txt.gz
          376 kB
        3. 10.3.3.104-8091-diag.txt.gz
          244 kB
        4. 10.3.3.106-8091-diag.txt.gz
          381 kB
        5. 10.3.3.106-8091-diag.txt.gz
          232 kB
        6. 10.3.3.107-8091-diag.txt.gz
          378 kB
        7. 10.3.3.107-8091-diag.txt.gz
          231 kB
        8. 10.3.3.95-8091-diag.txt.gz
          490 kB
        9. 10.3.3.95-8091-diag.txt.gz
          403 kB
        10. 10.3.3.98-8091-diag.txt.gz
          55 kB
        11. 63.couch.2.gz
          67 kB
        12. debug_true_output.txt.gz
          3.09 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            chiyoung Chiyoung Seo (Inactive)
            deepkaran.salooja Deepkaran Salooja
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty