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

reduce error causes incomplete index

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • 6.5.0
    • 5.0.1
    • view-engine
    • None
    • Regretfully, we didn't save index files in broken state = nothing to show :(
    • Triaged
    • Unknown

    Description

      1. 1M items bucket
      2. create good map function
      3. create bad reduce function that fails (in our case it failed due to result size limit, but I don't think it's relevant)
      4. save
      5. indexing starts
      6. indexing stops with error

      Now we have something indexed, something not, because first reduce error aborts couch_view_index_builder process.

      So far so good.

      Now

      1. fix reduce function
      2. save
      3. indexing starts
      4. indexing stops

      Now we have no diagnostic messages and everything seems OK.
      Yet it is not so.
      Some documents not make it into the index.
      Query group=false&key="key1" returns less documents by key than there are in this bucket (in our case there were 2 documents, query returns only 1).

      View map function update (added comment line) forces total index update, that helped and missing documents appeared in search API reply.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ankit.prabhu Ankit Prabhu
              paf Alexander Petrossian (PAF)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty