<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Wed May 22 10:14:16 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-5020/MB-5020.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-5020] Rebalance state incorrectly reported as running even when it&apos;s not and user is unable to stop it or fail over/add nodes</title>
                <link>http://www.couchbase.com/issues/browse/MB-5020</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>One of customers had master node fail in the middle of rebalance. As a result rebalance was actually aborted, but ns_config flag that marks rebalance as running was still there.&lt;br/&gt;
&lt;br/&gt;
What&amp;#39;s most notable is that we&amp;#39;re not allowing many actions in UI while rebalancing. So UI was incorrectly thinking that rebalance is running and not allowing that broken node to be failed over.&lt;br/&gt;
&lt;br/&gt;
Stop rebalance wasn&amp;#39;t actually working as well because rebalance wasn&amp;#39;t really running.&lt;br/&gt;
&lt;br/&gt;
Customer had to manually reset rebalance state via /diag/eval snippet that sets rebalance_state config variable. I&amp;#39;ve recommended something like that: ns_config:set(rebalance_status, {node, &amp;lt;&amp;lt;&amp;quot;stopped by human&amp;quot;&amp;gt;&amp;gt;}).&lt;br/&gt;
&lt;br/&gt;
It&amp;#39;s notable that 1.8.0 actually have code to clean up stale rebalance status, but it is only triggered when all nodes are healthy, which was not holding in this customer&amp;#39;s case.&lt;br/&gt;
&lt;br/&gt;
So decision was to actually clear rebalance status when asked, but to warn user if our orchestrator is clearly not running rebalance because network partition may actually mean that some other network partition still has old orchestrator that tries to run rebalance.&lt;br/&gt;
</description>
                <environment></environment>
            <key id="16481">MB-5020</key>
            <summary>Rebalance state incorrectly reported as running even when it&apos;s not and user is unable to stop it or fail over/add nodes</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="5" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="Aliaksey Artamonau">Aliaksey Artamonau</assignee>
                                <reporter username="alkondratenko">Aleksey Kondratenko</reporter>
                        <labels>
                        <label>1.8.1-release-notes</label>
                    </labels>
                <created>Thu, 5 Apr 2012 14:03:30 -0500</created>
                <updated>Sun, 13 May 2012 18:58:11 -0500</updated>
                    <resolved>Thu, 5 Apr 2012 14:45:24 -0500</resolved>
                            <version>1.8.0</version>
                                <fixVersion>1.8.1</fixVersion>
                                <component>ns_server</component>
                <component>RESTful-APIs</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="25512" author="alkondratenko" created="Thu, 5 Apr 2012 14:45:24 -0500"  >Fix merged as a bunch of commits</comment>
                    <comment id="25533" author="thuan" created="Thu, 5 Apr 2012 22:14:49 -0500"  >Integrated in github-ns-server-2-0 #329 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-ns-server-2-0/329/&quot;&gt;http://qa.hq.northscale.net/job/github-ns-server-2-0/329/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Store rebalancer PID in config.&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-5020&quot; title=&quot;Rebalance state incorrectly reported as running even when it&amp;#39;s not and user is unable to stop it or fail over/add nodes&quot;&gt;&lt;strike&gt;MB-5020&lt;/strike&gt;&lt;/a&gt; (Revision 2a05fa0ebebd94822f7ab42ea12ebb849a7216b5)&lt;br/&gt;
Drop rebalance status even when rebalance isn&amp;#39;t running.&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-5020&quot; title=&quot;Rebalance state incorrectly reported as running even when it&amp;#39;s not and user is unable to stop it or fail over/add nodes&quot;&gt;&lt;strike&gt;MB-5020&lt;/strike&gt;&lt;/a&gt; (Revision 30e1951fe98f97b8976e03774db284bdfd9d3906)&lt;br/&gt;
Add stopRebalanceIsSafe to pool details.&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-5020&quot; title=&quot;Rebalance state incorrectly reported as running even when it&amp;#39;s not and user is unable to stop it or fail over/add nodes&quot;&gt;&lt;strike&gt;MB-5020&lt;/strike&gt;&lt;/a&gt; (Revision 2671ab08b868b1ba908e35ef13d8d27b2f540d43)&lt;br/&gt;
Warn user on unsafe rebalance stop attempt.&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-5020&quot; title=&quot;Rebalance state incorrectly reported as running even when it&amp;#39;s not and user is unable to stop it or fail over/add nodes&quot;&gt;&lt;strike&gt;MB-5020&lt;/strike&gt;&lt;/a&gt; (Revision 6d653e9d0f4043ac4c0bf84c6857831df675ec6b)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
Aliaksey Kandratsenka : &lt;br/&gt;
Files : &lt;br/&gt;
* src/ns_janitor.erl&lt;br/&gt;
* src/ns_orchestrator.erl&lt;br/&gt;
&lt;br/&gt;
Aliaksey Kandratsenka : &lt;br/&gt;
Files : &lt;br/&gt;
* src/ns_janitor.erl&lt;br/&gt;
* src/ns_orchestrator.erl&lt;br/&gt;
&lt;br/&gt;
Aliaksey Kandratsenka : &lt;br/&gt;
Files : &lt;br/&gt;
* src/ns_cluster_membership.erl&lt;br/&gt;
* src/menelaus_web.erl&lt;br/&gt;
&lt;br/&gt;
Aliaksey Kandratsenka : &lt;br/&gt;
Files : &lt;br/&gt;
* priv/public/js/servers.js&lt;br/&gt;
* priv/public/index.html&lt;br/&gt;
</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                        <customfield id="customfield_10180" key="com.atlassian.jira.ext.charting:firstresponsedate">
                <customfieldname>Date of First Response</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>Thu, 5 Apr 2012 22:14:49 -0500</customfieldvalue>

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