<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Sun May 19 05:46:24 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-6922/MB-6922.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-6922] ns_server should send 302 reply when view query hits node without any active vbuckets</title>
                <link>http://www.couchbase.com/issues/browse/MB-6922</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>Client&amp;#39;s would like to cache list of bucket&amp;#39;s nodes. Currently when node is rebalanced out there&amp;#39;s period of time when it doesn&amp;#39;t have any active vbuckets left. Our view merger cannot deal with that so we currently return 404.&lt;br/&gt;
&lt;br/&gt;
But SDK folks would like us to handle it similarly to not-my-vbucket at memcached level. And they want to send back 302 with some random node with vbuckets in Location.&lt;br/&gt;
&lt;br/&gt;
update: I think I wasn&amp;#39;t clear enough. 404 is hard to interpret from client perspective. It may mean &amp;#39;no such ddoc exist&amp;#39; or &amp;#39;no such bucket exists&amp;#39; or currently &amp;#39;you cannot query this node&amp;#39;. 302 instead of 404 for such condition would be much clearer signal to client.</description>
                <environment></environment>
            <key id="20257">MB-6922</key>
            <summary>ns_server should send 302 reply when view query hits node without any active vbuckets</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="alkondratenko">Aleksey Kondratenko</assignee>
                                <reporter username="alkondratenko">Aleksey Kondratenko</reporter>
                        <labels>
                    </labels>
                <created>Mon, 15 Oct 2012 18:26:15 -0500</created>
                <updated>Tue, 15 Jan 2013 02:27:59 -0600</updated>
                    <resolved>Tue, 16 Oct 2012 08:53:05 -0500</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0</fixVersion>
                                <component>ns_server</component>
                                <votes>0</votes>
                        <watches>3</watches>
                                                    <comments>
                    <comment id="41448" author="Iryna" created="Tue, 16 Oct 2012 04:01:57 -0500"  >verified on build 1854&lt;br/&gt;
change - &lt;a href=&quot;http://review.couchbase.org/#/c/21657/&quot;&gt;http://review.couchbase.org/#/c/21657/&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
302 is returned. &lt;br/&gt;
&lt;a href=&apos;mailto:iryna@test-ruby01&apos;&gt;iryna@test-ruby01&lt;/a&gt;:~/couchbase/testrunner$ curl -v &amp;#39;&lt;a href=&quot;http://10.3.121.105:8092/default/_design/view1/_view/view1?connection_timeout=60000&amp;limit=10&amp;skip=0&amp;#39;&quot;&gt;http://10.3.121.105:8092/default/_design/view1/_view/view1?connection_timeout=60000&amp;amp;limit=10&amp;amp;skip=0&amp;amp;#39;&lt;/a&gt;&lt;br/&gt;
curl: /usr/local/lib/libcurl.so.4: no version information available (required by curl)&lt;br/&gt;
* About to connect() to 10.3.121.105 port 8092 (#0)&lt;br/&gt;
*   Trying 10.3.121.105... connected&lt;br/&gt;
* Connected to 10.3.121.105 (10.3.121.105) port 8092 (#0)&lt;br/&gt;
&amp;gt; GET /default/_design/view1/_view/view1?connection_timeout=60000&amp;amp;limit=10&amp;amp;skip=0 HTTP/1.1&lt;br/&gt;
&amp;gt; User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.21.4 OpenSSL/1.0.1 zlib/1.2.3.4&lt;br/&gt;
&amp;gt; Host: 10.3.121.105:8092&lt;br/&gt;
&amp;gt; Accept: */*&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;lt; HTTP/1.1 302 Moved Temporarily&lt;br/&gt;
&amp;lt; Server: Couchbase Server 2.0.0-1854-rel-enterprise&lt;br/&gt;
&amp;lt; Pragma: no-cache&lt;br/&gt;
&amp;lt; Location: &lt;a href=&quot;http://10.3.121.104:8092/default/_design/view1/_view/view1?connection_timeout=60000&amp;limit=10&amp;skip=0&quot;&gt;http://10.3.121.104:8092/default/_design/view1/_view/view1?connection_timeout=60000&amp;amp;limit=10&amp;amp;skip=0&lt;/a&gt;&lt;br/&gt;
&amp;lt; Date: Tue, 16 Oct 2012 08:54:52 GMT&lt;br/&gt;
&amp;lt; Content-Type: application/json&lt;br/&gt;
&amp;lt; Content-Length: 105&lt;br/&gt;
&amp;lt; Cache-Control: no-cache&lt;br/&gt;
&amp;lt; &lt;br/&gt;
* Connection #0 to host 10.3.121.105 left intact&lt;br/&gt;
* Closing connection #0&lt;br/&gt;
{&amp;quot;error&amp;quot;:&amp;quot;no_active_vbuckets&amp;quot;,&amp;quot;reason&amp;quot;:&amp;quot;Cannot execute view query since the node has no active vbuckets&amp;quot;}&lt;br/&gt;
&lt;br/&gt;
But on UI error is not user-friendly: {&amp;quot;error&amp;quot;:{&amp;quot;xhrStatus&amp;quot;:&amp;quot;error&amp;quot;,&amp;quot;errMsg&amp;quot;:&amp;quot;&amp;quot;}}&lt;br/&gt;
attaching screenshot</comment>
                    <comment id="41480" author="alkondratenko" created="Tue, 16 Oct 2012 08:29:42 -0500"  >Thanks for pointing this out. We&amp;#39;ll deal with that.&lt;br/&gt;
</comment>
                    <comment id="41486" author="farshid" created="Tue, 16 Oct 2012 08:53:05 -0500"  >Iryna is going to file a seperate ticket for this issue</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Dependency</name>
                                                <inwardlinks description="blocks">
                            <issuelink>
            <issuekey id="21762">CCBC-169</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                    <attachment id="15436" name="No_active_vbuckets_UI.png" size="184992" author="Iryna" created="Tue, 16 Oct 2012 04:02:26 -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, 16 Oct 2012 04:01:57 -0500</customfieldvalue>

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