<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Mon May 20 12:03:31 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-4518/MB-4518.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-4518] deleting items during rebalance results in desynced view</title>
                <link>http://www.couchbase.com/issues/browse/MB-4518</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>1) cluster 2 nodes together&lt;br/&gt;
2) add 100 json items&lt;br/&gt;
3) create a simple view with _count reduce&lt;br/&gt;
4) verify that all items are returned in the view&lt;br/&gt;
5) start to rebalance in a 3rd node, while at the same time start deleting all the keys&lt;br/&gt;
6) wait till both rebalance and deletes are done&lt;br/&gt;
7) verify that all items are deleted from memcached&lt;br/&gt;
8) verify that all items are gone from the view&lt;br/&gt;
at this point in my test I had 7 items left</description>
                <environment>centos 5.4 64 bit&lt;br/&gt;
3 nodes&lt;br/&gt;
r-378</environment>
            <key id="15674">MB-4518</key>
            <summary>deleting items during rebalance results in desynced view</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/blocker.png">Blocker</priority>
                    <status id="6" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="3">Duplicate</resolution>
                    <security id="10011">Public</security>
                        <assignee username="damien">Damien Katz</assignee>
                                <reporter username="keith">Keith Batten</reporter>
                        <labels>
                        <label>2.0-DP3-release-notes</label>
                    </labels>
                <created>Wed, 7 Dec 2011 15:19:13 -0600</created>
                <updated>Mon, 6 Feb 2012 10:07:56 -0600</updated>
                    <resolved>Thu, 26 Jan 2012 20:48:59 -0600</resolved>
                            <version>2.0-developer-preview-3</version>
                                <fixVersion>2.0-developer-preview-4</fixVersion>
                                <component>view-engine</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="23163" author="Aliaksey Artamonau" created="Fri, 23 Dec 2011 01:20:54 -0600"  >It seems like an ep-engine issue. Was able to reproduce it with 2 and 3 node clusters. Just created 10k items and then deleted them while rebalancing in a new node. Waited till rebalance was complete. After this from time to time cbstats reported non-zero number of active items on the old node. Sometimes it reported zero active items but non-zero replica items. Although all the items were not accessible via memcached. But the items were present in couchdb and thus visible to views. Mike, sync up with Chiyoung on this issue please.</comment>
                    <comment id="23193" author="karan" created="Mon, 26 Dec 2011 20:00:10 -0600"  >Thanks Aliaksey. This is definitely an issue currently. &lt;br/&gt;
I was able to easily reproduce this. After rebalance, the active_items != replica_items. &lt;br/&gt;
&lt;br/&gt;
Will open another bug. </comment>
                    <comment id="23194" author="karan" created="Mon, 26 Dec 2011 20:02:13 -0600"  >For reproducing this:-&lt;br/&gt;
1) Keep delete workload going in parallel&lt;br/&gt;
2) Issue rebalance of nodes in. </comment>
                    <comment id="23569" author="mikew" created="Wed, 18 Jan 2012 13:26:23 -0600"  >This issue is caused by an error in views. I was able to verify that there were no items in couchdb after my deleting everything, but my view still reported having items. Alaiksey was able to produce a scenario however where active/replica item counts were not 0 so I will look into that issue. It is filed as &lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-4661&quot; title=&quot;active/replica item count not 0 when all items are deleted.&quot;&gt;&lt;strike&gt;MB-4661&lt;/strike&gt;&lt;/a&gt;.</comment>
                    <comment id="23580" author="steve" created="Wed, 18 Jan 2012 20:02:08 -0600"  >Aliaksey A looking at this right now</comment>
                    <comment id="23619" author="Aliaksey Artamonau" created="Thu, 19 Jan 2012 19:44:28 -0600"  >Attaching more log files. From ns_server perspective everything looks fine. On all the nodes correct vbucket are indexed. I also verified that update_seqs reported by couch_set_view:get_group_info and by couch_db:get_update_seq are the same.</comment>
                    <comment id="23620" author="Aliaksey Artamonau" created="Thu, 19 Jan 2012 19:44:48 -0600"  >Assigning to Filipe for further investigation.</comment>
                    <comment id="23721" author="steve" created="Tue, 24 Jan 2012 10:55:00 -0600"  >Hi Damien,&lt;br/&gt;
Any news/status on this one?&lt;br/&gt;
Thanks</comment>
                    <comment id="23812" author="steve" created="Thu, 26 Jan 2012 18:52:48 -0600"  >Hi Damien, &lt;br/&gt;
Any news/status on this one?  Ping #2.&lt;br/&gt;
Thanks</comment>
                    <comment id="23815" author="damien" created="Thu, 26 Jan 2012 18:57:00 -0600"  >Was able to reproduce, but haven&amp;#39;t been able to spend a lot of time on it yet. Filipe is also looking at it.</comment>
                    <comment id="23827" author="damien" created="Thu, 26 Jan 2012 20:48:59 -0600"  >This appears to be a duplicate of &lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-4692&quot; title=&quot;Reduce view returns incorrect results&quot;&gt;&lt;strike&gt;MB-4692&lt;/strike&gt;&lt;/a&gt;. It appears that some vbuckets aren&amp;#39;t properly cleaned/omitted from view indexes.</comment>
                    <comment id="23848" author="Filipe Manana" created="Fri, 27 Jan 2012 23:45:28 -0600"  >&lt;a href=&quot;http://review.couchbase.org/#change,12767&quot;&gt;http://review.couchbase.org/#change,12767&lt;/a&gt; fixes it</comment>
                    <comment id="24139" author="farshid" created="Mon, 6 Feb 2012 10:07:56 -0600"  >viewtests.ViewRebalanceTests.test_delete_x_docs_rebalance_in 	1 min 43 sec	Fixed&lt;br/&gt;
viewtests.ViewRebalanceTests.test_delete_x_docs_rebalance_out 	1 min 53 sec	Fixed&lt;br/&gt;
viewtests.ViewRebalanceTests.test_load_x_during_rebalance 	6 min 17 sec	Fixed&lt;br/&gt;
viewtests.ViewRebalanceTests.test_view_stop_start_incremental_rebalance &lt;br/&gt;
&lt;br/&gt;
build : 2.0.0r-643-g4e529d3</comment>
                </comments>
                    <attachments>
                    <attachment id="11993" name="logs_deletion.tar.bz2" size="323851" author="Aliaksey Artamonau" created="Thu, 19 Jan 2012 19:44:28 -0600" />
                    <attachment id="11982" name="logs.zip" size="8922358" author="mikew" created="Wed, 18 Jan 2012 13:23:20 -0600" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                        <customfield id="customfield_10180" key="com.atlassian.jira.ext.charting:firstresponsedate">
                <customfieldname>Date of First Response</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>Fri, 23 Dec 2011 01:20:54 -0600</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>5931</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>