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

deleting development ddocs can delete production index files

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: view-engine
    • Security Level: Public
    • Labels:
      None
    • Environment:
      build-1672 and cluster_run
      2 Node cluster

      Description

      Load 3k documents with any tool. I used cbsystest:
      python cbsystest.py run workload --template "default" --ops 1000 --create 100

      1) create 2 default design docs, each with same view name, and same default map functions.

      2) Publish 1 of the design docs from dev to production

      3) Delete the other development ddoc

      • deletes index file from disk for both ddocs

      4) Querying published ddoc now reports view_merge errors:
      Subset of nodes failed with the following error:
      [

      { "from": "local", "reason": "Undefined set view `default` for `_design/ddoc1` design document." }

      , {
      "from": "http://172.20.10.3:9501/_view_merge/?limit=10",
      "reason": "

      {<<\"unknown_error\">>,<<\"view_undefined\">>}

      "
      } ]

      ns

      1. ns-diag-20120904183541.txt.gz
        1.02 MB
        Tommie McAfee
      2. ns-diag-20120904183607.txt.gz
        1.02 MB
        Tommie McAfee
      # Subject Project Status CR V
      For Gerrit Dashboard: &For+MB-6517=message:MB-6517

        Activity

        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        Tommie,

        please provide the map-reduce function definition for all views as well. assign this back to Filipe after

        Show
        farshid Farshid Ghods (Inactive) added a comment - Tommie, please provide the map-reduce function definition for all views as well. assign this back to Filipe after
        Hide
        FilipeManana Filipe Manana (Inactive) added a comment -

        Happens because of the change from MB-6415.
        Reverting that change, will cause issues if there's ddoc updates/deletes during rebalance (view-engine can't tell when rebalance is ongoing or not).

        Show
        FilipeManana Filipe Manana (Inactive) added a comment - Happens because of the change from MB-6415 . Reverting that change, will cause issues if there's ddoc updates/deletes during rebalance (view-engine can't tell when rebalance is ongoing or not).
        Hide
        FilipeManana Filipe Manana (Inactive) added a comment -

        MB-6415 is actually a bit extreme, one needs to update a ddoc, and then after, before rebalance finishes, update it again to the previous version or create a new design document that matches the initial version of the updated one.

        I'll see if I can go around this without reverting MB-6415 completely.

        Show
        FilipeManana Filipe Manana (Inactive) added a comment - MB-6415 is actually a bit extreme, one needs to update a ddoc, and then after, before rebalance finishes, update it again to the previous version or create a new design document that matches the initial version of the updated one. I'll see if I can go around this without reverting MB-6415 completely.
        Hide
        peter peter added a comment -

        Please let Iryna know to add a test case for this case found by Tommie.

        Show
        peter peter added a comment - Please let Iryna know to add a test case for this case found by Tommie.
        Hide
        FilipeManana Filipe Manana (Inactive) added a comment -

        Fix merged to master: http://review.couchbase.org/#/c/20481/

        Farshid, sounds like a useful test to have in testrunner.
        Do you think your team should write one? Let me know, and I'll close this issue and open a QE one for that.

        thanks

        Show
        FilipeManana Filipe Manana (Inactive) added a comment - Fix merged to master: http://review.couchbase.org/#/c/20481/ Farshid, sounds like a useful test to have in testrunner. Do you think your team should write one? Let me know, and I'll close this issue and open a QE one for that. thanks
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        http://www.couchbase.com/issues/browse/CBQE-582
        is opened already for adding this test to testrunner.

        we can close this bug once the fix is merged

        Show
        farshid Farshid Ghods (Inactive) added a comment - http://www.couchbase.com/issues/browse/CBQE-582 is opened already for adding this test to testrunner. we can close this bug once the fix is merged
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in github-couchdb-preview #501 (See http://qa.hq.northscale.net/job/github-couchdb-preview/501/)
        MB-6517 Delete index files only if there are no aliases (Revision 884ba59c4e3f83db5f38cd056529d979f3e9d7e8)

        Result = SUCCESS
        pwansch :
        Files :

        • src/couch_set_view/test/02-old-index-cleanup.t
        • src/couch_set_view/src/couch_set_view.erl
        • src/couch_set_view/src/couch_set_view_group.erl
        Show
        thuan Thuan Nguyen added a comment - Integrated in github-couchdb-preview #501 (See http://qa.hq.northscale.net/job/github-couchdb-preview/501/ ) MB-6517 Delete index files only if there are no aliases (Revision 884ba59c4e3f83db5f38cd056529d979f3e9d7e8) Result = SUCCESS pwansch : Files : src/couch_set_view/test/02-old-index-cleanup.t src/couch_set_view/src/couch_set_view.erl src/couch_set_view/src/couch_set_view_group.erl
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in centos-64-2.0-failover-regression #23 (See http://qa.hq.northscale.net/job/centos-64-2.0-failover-regression/23/)
        CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb)

        Result = UNSTABLE

        Show
        thuan Thuan Nguyen added a comment - Integrated in centos-64-2.0-failover-regression #23 (See http://qa.hq.northscale.net/job/centos-64-2.0-failover-regression/23/ ) CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb) Result = UNSTABLE
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in single-node-2.0.x-windows7-64-view #14 (See http://qa.hq.northscale.net/job/single-node-2.0.x-windows7-64-view/14/)

        Result = UNSTABLE

        Show
        thuan Thuan Nguyen added a comment - Integrated in single-node-2.0.x-windows7-64-view #14 (See http://qa.hq.northscale.net/job/single-node-2.0.x-windows7-64-view/14/ ) Result = UNSTABLE
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in multi-nodes-windows-64-viewtest #16 (See http://qa.hq.northscale.net/job/multi-nodes-windows-64-viewtest/16/)
        CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb)

        Result = UNSTABLE

        Show
        thuan Thuan Nguyen added a comment - Integrated in multi-nodes-windows-64-viewtest #16 (See http://qa.hq.northscale.net/job/multi-nodes-windows-64-viewtest/16/ ) CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb) Result = UNSTABLE
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in single-node-windows-64-install #367 (See http://qa.hq.northscale.net/job/single-node-windows-64-install/367/)
        CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb)

        Result = SUCCESS

        Show
        thuan Thuan Nguyen added a comment - Integrated in single-node-windows-64-install #367 (See http://qa.hq.northscale.net/job/single-node-windows-64-install/367/ ) CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb) Result = SUCCESS
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in single-node-2.0.x-windows7-32-smoke #16 (See http://qa.hq.northscale.net/job/single-node-2.0.x-windows7-32-smoke/16/)
        CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb)

        Result = UNSTABLE

        Show
        thuan Thuan Nguyen added a comment - Integrated in single-node-2.0.x-windows7-32-smoke #16 (See http://qa.hq.northscale.net/job/single-node-2.0.x-windows7-32-smoke/16/ ) CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb) Result = UNSTABLE
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in single-node 2.0.x-windows-32-smoke #13 (See http://qa.hq.northscale.net/job/single-node%202.0.x-windows-32-smoke/13/)
        CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb)

        Result = UNSTABLE

        Show
        thuan Thuan Nguyen added a comment - Integrated in single-node 2.0.x-windows-32-smoke #13 (See http://qa.hq.northscale.net/job/single-node%202.0.x-windows-32-smoke/13/ ) CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb) Result = UNSTABLE
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in multi-nodes-2.0.x-windows-64-install #15 (See http://qa.hq.northscale.net/job/multi-nodes-2.0.x-windows-64-install/15/)

        Result = SUCCESS

        Show
        thuan Thuan Nguyen added a comment - Integrated in multi-nodes-2.0.x-windows-64-install #15 (See http://qa.hq.northscale.net/job/multi-nodes-2.0.x-windows-64-install/15/ ) Result = SUCCESS
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in multi-nodes-windows-64-viewquery #13 (See http://qa.hq.northscale.net/job/multi-nodes-windows-64-viewquery/13/)

        Result = UNSTABLE

        Show
        thuan Thuan Nguyen added a comment - Integrated in multi-nodes-windows-64-viewquery #13 (See http://qa.hq.northscale.net/job/multi-nodes-windows-64-viewquery/13/ ) Result = UNSTABLE

          People

          • Assignee:
            farshid Farshid Ghods (Inactive)
            Reporter:
            tommie Tommie McAfee
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes