<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Sun May 26 04:27:51 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.couchbase.com/issues/si/jira.issueviews:issue-xml/MB-6517/MB-6517.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Couchbase</title>
    <link>http://www.couchbase.com/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.4</version>
        <build-number>845</build-number>
        <build-date>26-12-2012</build-date>
    </build-info>

<item>
            <title>[MB-6517] deleting development ddocs can delete production index files</title>
                <link>http://www.couchbase.com/issues/browse/MB-6517</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>Load 3k documents with any tool.  I used cbsystest:&lt;br/&gt;
python cbsystest.py run workload  --template &amp;quot;default&amp;quot;  --ops 1000  --create 100&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
1) create 2 default design docs, each with same view name, and same default map functions.&lt;br/&gt;
&lt;br/&gt;
2) Publish 1 of the design docs from dev to production &lt;br/&gt;
&lt;br/&gt;
3) Delete the other development ddoc&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;* deletes index file from disk for both ddocs&lt;br/&gt;
&lt;br/&gt;
4) Querying published ddoc now reports view_merge errors:&lt;br/&gt;
Subset of nodes failed with the following error:&lt;br/&gt;
[ {&lt;br/&gt;
&amp;quot;from&amp;quot;: &amp;quot;local&amp;quot;,&lt;br/&gt;
&amp;quot;reason&amp;quot;: &amp;quot;Undefined set view `default` for `_design/ddoc1` design document.&amp;quot;&lt;br/&gt;
}, {&lt;br/&gt;
&amp;quot;from&amp;quot;: &amp;quot;&lt;a href=&quot;http://172.20.10.3:9501/_view_merge/?limit=10&quot;&gt;http://172.20.10.3:9501/_view_merge/?limit=10&lt;/a&gt;&amp;quot;,&lt;br/&gt;
&amp;quot;reason&amp;quot;: &amp;quot;{&amp;lt;&amp;lt;\&amp;quot;unknown_error\&amp;quot;&amp;gt;&amp;gt;,&amp;lt;&amp;lt;\&amp;quot;view_undefined\&amp;quot;&amp;gt;&amp;gt;}&amp;quot;&lt;br/&gt;
} ]&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
ns</description>
                <environment>build-1672 and cluster_run&lt;br/&gt;
2 Node cluster&lt;br/&gt;
</environment>
            <key id="19538">MB-6517</key>
            <summary>deleting development ddocs can delete production index files</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/critical.png">Critical</priority>
                    <status id="6" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="farshid">Farshid Ghods</assignee>
                                <reporter username="tommie">Tommie McAfee</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Sep 2012 17:46:46 -0500</created>
                <updated>Sat, 20 Oct 2012 19:47:42 -0500</updated>
                    <resolved>Wed, 5 Sep 2012 20:48:17 -0500</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0</fixVersion>
                                <component>view-engine</component>
                                <votes>0</votes>
                        <watches>1</watches>
                                                    <comments>
                    <comment id="37616" author="farshid" created="Tue, 4 Sep 2012 17:55:47 -0500"  >Tommie, &lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
please provide the map-reduce function definition for all views as well. assign this back to Filipe after</comment>
                    <comment id="37618" author="FilipeManana" created="Tue, 4 Sep 2012 18:05:43 -0500"  >Happens because of the change from &lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-6415&quot; title=&quot;Failure to open view group when rebalance is ongoing&quot;&gt;&lt;strike&gt;MB-6415&lt;/strike&gt;&lt;/a&gt;.&lt;br/&gt;
Reverting that change, will cause issues if there&amp;#39;s ddoc updates/deletes during rebalance (view-engine can&amp;#39;t tell when rebalance is ongoing or not).</comment>
                    <comment id="37620" author="FilipeManana" created="Tue, 4 Sep 2012 18:16:12 -0500"  >&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-6415&quot; title=&quot;Failure to open view group when rebalance is ongoing&quot;&gt;&lt;strike&gt;MB-6415&lt;/strike&gt;&lt;/a&gt; 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.&lt;br/&gt;
&lt;br/&gt;
I&amp;#39;ll see if I can go around this without reverting &lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-6415&quot; title=&quot;Failure to open view group when rebalance is ongoing&quot;&gt;&lt;strike&gt;MB-6415&lt;/strike&gt;&lt;/a&gt; completely.</comment>
                    <comment id="37692" author="peter" created="Wed, 5 Sep 2012 13:24:07 -0500"  >Please let Iryna know to add a test case for this case found by Tommie.</comment>
                    <comment id="37729" author="FilipeManana" created="Wed, 5 Sep 2012 15:47:26 -0500"  >Fix merged to master:  &lt;a href=&quot;http://review.couchbase.org/#/c/20481/&quot;&gt;http://review.couchbase.org/#/c/20481/&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
Farshid, sounds like a useful test to have in testrunner.&lt;br/&gt;
Do you think your team should write one? Let me know, and I&amp;#39;ll close this issue and open a QE one for that.&lt;br/&gt;
&lt;br/&gt;
thanks</comment>
                    <comment id="37731" author="farshid" created="Wed, 5 Sep 2012 16:01:15 -0500"  >&lt;a href=&quot;http://www.couchbase.com/issues/browse/CBQE-582&quot;&gt;http://www.couchbase.com/issues/browse/CBQE-582&lt;/a&gt;&lt;br/&gt;
&amp;nbsp;is opened already for adding this test to testrunner.&lt;br/&gt;
&lt;br/&gt;
we can close this bug once the fix is merged</comment>
                    <comment id="37743" author="thuan" created="Wed, 5 Sep 2012 16:53:57 -0500"  >Integrated in github-couchdb-preview #501 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-couchdb-preview/501/&quot;&gt;http://qa.hq.northscale.net/job/github-couchdb-preview/501/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-6517&quot; title=&quot;deleting development ddocs can delete production index files&quot;&gt;&lt;strike&gt;MB-6517&lt;/strike&gt;&lt;/a&gt; Delete index files only if there are no aliases (Revision 884ba59c4e3f83db5f38cd056529d979f3e9d7e8)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
pwansch : &lt;br/&gt;
Files : &lt;br/&gt;
* src/couch_set_view/test/02-old-index-cleanup.t&lt;br/&gt;
* src/couch_set_view/src/couch_set_view.erl&lt;br/&gt;
* src/couch_set_view/src/couch_set_view_group.erl&lt;br/&gt;
</comment>
                    <comment id="39459" author="thuan" created="Fri, 21 Sep 2012 00:35:00 -0500"  >Integrated in centos-64-2.0-failover-regression #23 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/centos-64-2.0-failover-regression/23/&quot;&gt;http://qa.hq.northscale.net/job/centos-64-2.0-failover-regression/23/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = UNSTABLE</comment>
                    <comment id="39466" author="thuan" created="Fri, 21 Sep 2012 02:38:38 -0500"  >Integrated in single-node-2.0.x-windows7-64-view #14 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/single-node-2.0.x-windows7-64-view/14/&quot;&gt;http://qa.hq.northscale.net/job/single-node-2.0.x-windows7-64-view/14/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = UNSTABLE</comment>
                    <comment id="39649" author="thuan" created="Wed, 26 Sep 2012 00:53:22 -0500"  >Integrated in multi-nodes-windows-64-viewtest #16 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/multi-nodes-windows-64-viewtest/16/&quot;&gt;http://qa.hq.northscale.net/job/multi-nodes-windows-64-viewtest/16/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = UNSTABLE</comment>
                    <comment id="39753" author="thuan" created="Wed, 26 Sep 2012 14:56:46 -0500"  >Integrated in single-node-windows-64-install #367 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/single-node-windows-64-install/367/&quot;&gt;http://qa.hq.northscale.net/job/single-node-windows-64-install/367/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS</comment>
                    <comment id="39784" author="thuan" created="Wed, 26 Sep 2012 16:22:27 -0500"  >Integrated in single-node-2.0.x-windows7-32-smoke #16 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/single-node-2.0.x-windows7-32-smoke/16/&quot;&gt;http://qa.hq.northscale.net/job/single-node-2.0.x-windows7-32-smoke/16/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = UNSTABLE</comment>
                    <comment id="39812" author="thuan" created="Wed, 26 Sep 2012 17:07:16 -0500"  >Integrated in single-node 2.0.x-windows-32-smoke #13 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/single-node%202.0.x-windows-32-smoke/13/&quot;&gt;http://qa.hq.northscale.net/job/single-node%202.0.x-windows-32-smoke/13/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CBQE-582: add a regression test for issue mb-6517 (Revision 8a813000497a7ac7683a9ec0b72c22e6972d3fcb)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = UNSTABLE</comment>
                    <comment id="41058" author="thuan" created="Wed, 10 Oct 2012 22:56:01 -0500"  >Integrated in multi-nodes-2.0.x-windows-64-install #15 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/multi-nodes-2.0.x-windows-64-install/15/&quot;&gt;http://qa.hq.northscale.net/job/multi-nodes-2.0.x-windows-64-install/15/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS</comment>
                    <comment id="42057" author="thuan" created="Sat, 20 Oct 2012 19:47:42 -0500"  >Integrated in multi-nodes-windows-64-viewquery #13 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/multi-nodes-windows-64-viewquery/13/&quot;&gt;http://qa.hq.northscale.net/job/multi-nodes-windows-64-viewquery/13/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = UNSTABLE</comment>
                </comments>
                    <attachments>
                    <attachment id="14746" name="ns-diag-20120904183541.txt.gz" size="1068452" author="tommie" created="Tue, 4 Sep 2012 17:46:46 -0500" />
                    <attachment id="14745" name="ns-diag-20120904183607.txt.gz" size="1069106" author="tommie" created="Tue, 4 Sep 2012 17:46:46 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                        <customfield id="customfield_10180" key="com.atlassian.jira.ext.charting:firstresponsedate">
                <customfieldname>Date of First Response</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>Tue, 4 Sep 2012 17:55:47 -0500</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>4097</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                                                                                                                        <customfield id="customfield_10181" key="com.atlassian.jira.ext.charting:timeinstatus">
                <customfieldname>Time In Status</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                </customfields>
    </item>
</channel>
</rss>