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

Indexed docs are not persisted even after "Stable Snapshot Interval" has elapsed if the interval is high like 2 mins

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.0.0
    • secondary-index
    • Security Level: Public
    • mac
    • Untriaged
    • No

    Description

      The test that I did was for indexer settings was:

      0. Change "Stable Snapshot Interval:" value to 2 mins (120000 ms)
      1. Load bucket with 10K docs

      2. Create index i1 on one of the fields and wait until it is active.
      3. curl -u Administrator:asdasd localhost:9102/stats shows that
      "default:i1:items_count":10000,"default:i1:num_docs_indexed":10000

      4. Create 1M mutations
      5. While mutations being indexed, I see stats -
      "default:i1:items_count":10000,"default:i1:num_docs_indexed":241019,

      6. After waiting for more than two mins I see that though all 1M new docs are indexed, the committed items still show as 10000 -
      "default:i1:items_count":10000,"default:i1:num_docs_indexed":1010000

      This will be the state until new mutations are created. Though scan returns all new mutations, those docs are indexed in memory. If the indexer crashes at this point, the indexing of 1M docs will happen all over again.

      Attachments

        Issue Links

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

          Activity

            People

              deepkaran.salooja Deepkaran Salooja
              prathibha Prathibha Bisarahalli (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty