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

Rollback after compactor finished gives index_builder error

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

       error code: 96, is caused by a failure to read the file

      94: file had no header:

      98: index file is corrupted. 

      After compactor finished and in the next updater runs if dcp receives any rollback, updater will throw index_builder_error.

      [couchdb:info,2020-01-30T13:29:33.739+05:30,couchdb_n_0@127.0.0.1:<0.2877.0>:couch_log:info:41]Set view `<ud>Default</ud>`, main group `<ud>_design/Test</ud>`, view compactor inserted 24035820 kvs.
      [couchdb:info,2020-01-30T13:29:33.740+05:30,couchdb_n_0@127.0.0.1:<0.2877.0>:couch_log:info:41]Compactor for set view `<ud>Default</ud>`, main group `<ud>_design/Test</ud>`, applying delta of 191377 changes (retry number 1, max # of log files per btree 1)
      [couchdb:info,2020-01-30T13:29:34.325+05:30,couchdb_n_0@127.0.0.1:<0.429.0>:couch_log:info:41]Set view `<ud>Default</ud>`, main (prod) group `<ud>_design/Test</ud>`, compaction complete in 15.309 seconds, filtered 0 key-value pairs
      [couchdb:info,2020-01-30T13:29:34.326+05:30,couchdb_n_0@127.0.0.1:<0.429.0>:couch_log:info:41]Deleting couch file "/Users/couchbase/Vulcan/ns_server/data/n_0/data/@indexes/Default/main_0c60b3073925d69702ce52efc90a9c4e.view.7" with renaming it to "/Users/couchbase/Vulcan/ns_server/data/n_0/data/.delete/be9dda645ca362d414eebe2d7ea9a5c5"
      [couchdb:info,2020-01-30T13:29:45.369+05:30,couchdb_n_0@127.0.0.1:<0.429.0>:couch_log:info:41]Rollback of set view `<ud>Default</ud>`, main (prod) group `<ud>_design/Test</ud>` to [{10,0}]
      indexable partitions before:   [{0,244802},{1,244186},{2,244241},{3,244253},{4,244624},{5,244789},{6,244196},{7,245035},{8,244383},{9,244925},{10,244735},{11,244376},{12,244527},{13,244338},{14,244728},{15,244234},{16,244429},{17,244187},{18,244556},{19,243983},{20,244216},{21,243863},{22,243938},{23,244265},{24,243708},{25,244545},{26,243773},{27,244985},{28,244200},{29,244287},{30,244274},{31,243575},{32,244841},{33,243746},{34,244182},{35,244069},{36,244306},{37,244385},{38,244045},{39,244158},{40,244043},{41,244246},{42,244075},{43,244000},{44,243962},{45,244242},{46,244129},{47,244504},{48,244249},{49,243949}]
      indexable partitions after:    [{0,0},{1,0},{2,0},{3,0},{4,0},{5,0},{6,0},{7,0},{8,0},{9,0},{10,0},{11,0},{12,0},{13,0},{14,0},{15,0},{16,0},{17,0},{18,0},{19,0},{20,0},{21,0},{22,0},{23,0},{24,0},{25,0},{26,0},{27,0},{28,0},{29,0},{30,0},{31,0},{32,0},{33,0},{34,0},{35,0},{36,0},{37,0},{38,0},{39,0},{40,0},{41,0},{42,0},{43,0},{44,0},{45,0},{46,0},{47,0},{48,0},{49,0}]
      unindexable partitions before: []
      unindexable partitions after:  []
      ....
      [couchdb:error,2020-01-30T13:35:55.093+05:30,couchdb_n_0@127.0.0.1:<0.429.0>:couch_log:error:44]Set view `<ud>Default</ud>`, main (prod) group `<ud>_design/Test</ud>`, received error from updater: <ud>{index_builder_exit,94,<<>>}</ud> 

       

      Attachments

        1. test.txt
          6 kB
        2. test1.txt
          1 kB

        Issue Links

          Activity

            People

              ankit.prabhu Ankit Prabhu
              ankit.prabhu Ankit Prabhu
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty