<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Mon May 20 01:18:44 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-4500/MB-4500.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-4500] reduce map show different count number at each node</title>
                <link>http://www.couchbase.com/issues/browse/MB-4500</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>Install couchbase server 2.0.0r-266 on 3 nodes at ec2.&lt;br/&gt;
Use mcsoda to load 200000 items to cluster.&lt;br/&gt;
Create a view name one and do some query.&lt;br/&gt;
Shutdown one node (A) and failover&lt;br/&gt;
Check reduce count on view one. Ok&lt;br/&gt;
Reinstall couchbase server 2.0.0r-266 on node A and add it back to cluster.&lt;br/&gt;
Rebalance. Ok&lt;br/&gt;
Check reduce count on view one. Ok&lt;br/&gt;
Shutdown node B and failover.&lt;br/&gt;
Check reduce count on cluster. Ok&lt;br/&gt;
Reinstall couchbase server 2.0.0r-266 on node B and add it back to cluster.&lt;br/&gt;
Rebalance Ok.&lt;br/&gt;
Check reduce count on full cluster. Failed &lt;br/&gt;
Restart couchbase server on 3 nodes of cluster.&lt;br/&gt;
See reduce count is different on each node&lt;br/&gt;
&lt;br/&gt;
</description>
                <environment>centos 5.4 64bit on ec2</environment>
            <key id="15652">MB-4500</key>
            <summary>reduce map show different count number at each node</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="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="Aliaksey Artamonau">Aliaksey Artamonau</assignee>
                                <reporter username="thuan">Thuan Nguyen</reporter>
                        <labels>
                        <label>2.0-DP3-release-notes</label>
                        <label>2.0-dev-preview-4-release-notes</label>
                    </labels>
                <created>Thu, 1 Dec 2011 21:36:49 -0600</created>
                <updated>Wed, 9 Jan 2013 22:59:12 -0600</updated>
                    <resolved>Wed, 18 Jan 2012 20:04:07 -0600</resolved>
                            <version>2.0-developer-preview-3</version>
                                <fixVersion>2.0-developer-preview-4</fixVersion>
                                <component>view-engine</component>
                                <votes>0</votes>
                        <watches>1</watches>
                                                    <comments>
                    <comment id="22852" author="Filipe Manana" created="Fri, 2 Dec 2011 07:00:47 -0600"  >So greping each log for the last occurrence of &amp;quot;Set view `default`, group `_design/dev_one`, partition states updated&amp;quot;, I can see that node 187 has the index without any active partitions defined.&lt;br/&gt;
&lt;br/&gt;
log187:&lt;br/&gt;
&lt;br/&gt;
[couchdb:info] [2011-12-01 18:28:54] [&lt;a href=&apos;mailto:ns_1@10.98.186.187&apos;&gt;ns_1@10.98.186.187&lt;/a&gt;:&amp;lt;0.19609.9&amp;gt;:couch_log:info:39] Set view `default`, group `_design/dev_one`, partition states updated&lt;br/&gt;
abitmask before 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, abitmask after 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&lt;br/&gt;
pbitmask before 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111, pbitmask after 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&lt;br/&gt;
cbitmask before 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000, cbitmask after 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000011111111111111111111111111111111111111111111000000000000000000000000000000000000000000111111111111111111111111111111111111111111&lt;br/&gt;
&lt;br/&gt;
log153:&lt;br/&gt;
&lt;br/&gt;
[couchdb:info] [2011-12-01 18:28:54] [&lt;a href=&apos;mailto:ns_1@10.124.193.153&apos;&gt;ns_1@10.124.193.153&lt;/a&gt;:&amp;lt;0.32606.0&amp;gt;:couch_log:info:39] Set view `default`, group `_design/dev_one`, partition states updated&lt;br/&gt;
abitmask before 1111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000, abitmask after 1111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000&lt;br/&gt;
pbitmask before 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, pbitmask after 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&lt;br/&gt;
cbitmask before 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, cbitmask after 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&lt;br/&gt;
&lt;br/&gt;
log206:&lt;br/&gt;
&lt;br/&gt;
[couchdb:info] [2011-12-01 18:28:52] [&lt;a href=&apos;mailto:ns_1@10.90.182.206&apos;&gt;ns_1@10.90.182.206&lt;/a&gt;:&amp;lt;0.31550.0&amp;gt;:couch_log:info:39] Set view `default`, group `_design/dev_one`, partition states updated&lt;br/&gt;
abitmask before 1000000000000000000000000000000000000000000000000000000000000000000000000000001110000011111111111111111111111111111111111111111100000000000000000000000000000000000000000001111111111111111111111111111111111111111111000000000000000000000000000000000000000000, abitmask after 0000000000000000000000000000000000000000000000000000000000000000000000000000001110000011111111111111111111111111111111111111111100000000000000000000000000000000000000000001111111111111111111111111111111111111111111000000000000000000000000000000000000000000&lt;br/&gt;
pbitmask before 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, pbitmask after 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&lt;br/&gt;
cbitmask before 0111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, cbitmask after 1111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&lt;br/&gt;
&lt;br/&gt;
In an Erlang shell, we can see that in the whole cluster, we only have 173 active partitions instead of 256:&lt;br/&gt;
&lt;br/&gt;
2&amp;gt; N206 = couch_set_view_util:decode_bitmask(2#0000000000000000000000000000000000000000000000000000000000000000000000000000001110000011111111111111111111111111111111111111111100000000000000000000000000000000000000000001111111111111111111111111111111111111111111000000000000000000000000000000000000000000).&lt;br/&gt;
[42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,&lt;br/&gt;
&amp;nbsp;61,62,63,64,65,66,67,68,69,70|...]&lt;br/&gt;
3&amp;gt; N187 = couch_set_view_util:decode_bitmask(2#0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).&lt;br/&gt;
[]&lt;br/&gt;
4&amp;gt; N153 = couch_set_view_util:decode_bitmask(2#1111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000).&lt;br/&gt;
[85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,&lt;br/&gt;
&amp;nbsp;103,104,105,106,107,108,109,110,111,112,113|...]&lt;br/&gt;
5&amp;gt;   &lt;br/&gt;
5&amp;gt; io:format(&amp;quot;~w~n&amp;quot;, [N206]).&lt;br/&gt;
[42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,175,176,177]&lt;br/&gt;
ok&lt;br/&gt;
6&amp;gt; io:format(&amp;quot;~w~n&amp;quot;, [N153]).&lt;br/&gt;
[85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]&lt;br/&gt;
ok&lt;br/&gt;
7&amp;gt; &lt;br/&gt;
7&amp;gt; O1 = ordsets:from_list(N153).&lt;br/&gt;
[85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,&lt;br/&gt;
&amp;nbsp;103,104,105,106,107,108,109,110,111,112,113|...]&lt;br/&gt;
8&amp;gt; O2 = ordsets:union(O1, ordsets:from_list(N206)).&lt;br/&gt;
[42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,&lt;br/&gt;
&amp;nbsp;61,62,63,64,65,66,67,68,69,70|...]&lt;br/&gt;
9&amp;gt; &lt;br/&gt;
9&amp;gt; io:format(&amp;quot;~p~n&amp;quot;, [O2]).&lt;br/&gt;
[42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,&lt;br/&gt;
&amp;nbsp;67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,&lt;br/&gt;
&amp;nbsp;92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,&lt;br/&gt;
&amp;nbsp;113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,&lt;br/&gt;
&amp;nbsp;132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,&lt;br/&gt;
&amp;nbsp;151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,&lt;br/&gt;
&amp;nbsp;175,176,177,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,&lt;br/&gt;
&amp;nbsp;229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,&lt;br/&gt;
&amp;nbsp;248,249,250,251,252,253,254,255]&lt;br/&gt;
ok&lt;br/&gt;
10&amp;gt; length(O2).&lt;br/&gt;
174&lt;br/&gt;
&lt;br/&gt;
Is it possible ns_server missed an index state update on node 187?</comment>
                    <comment id="22939" author="dipti" created="Thu, 8 Dec 2011 00:41:23 -0600"  >Is the reduce result incorrect only if node fails over , cluster gets rebalanced and node gets added? </comment>
                    <comment id="23071" author="alkondratenko" created="Mon, 19 Dec 2011 13:10:29 -0600"  >Tony, can you retest with latest UI? We think we&amp;#39;re hitting indexing timeouts. Newer UI will indicate that.&lt;br/&gt;
&lt;br/&gt;
Also as part of fixing it we need to be able to specify very big timeouts so that any indexing activity can be performed.&lt;br/&gt;
</comment>
                    <comment id="23582" author="steve" created="Wed, 18 Jan 2012 20:04:07 -0600"  >marking this resolved as Aliaksey A (standing over my desk here) believe it&amp;#39;s fixed</comment>
                </comments>
                    <attachments>
                    <attachment id="11863" name="log153.gz" size="619973" author="thuan" created="Thu, 1 Dec 2011 21:36:49 -0600" />
                    <attachment id="11864" name="log187.gz" size="3807860" author="thuan" created="Thu, 1 Dec 2011 21:36:49 -0600" />
                    <attachment id="11865" name="log206.gz" size="2830426" author="thuan" created="Thu, 1 Dec 2011 21:36:49 -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, 2 Dec 2011 07:00:47 -0600</customfieldvalue>

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