<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Sun May 26 02:41:23 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-7337/MB-7337.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-7337] [system test] node shown as pending for a long time after index path change</title>
                <link>http://www.couchbase.com/issues/browse/MB-7337</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>Online upgrade 5 nodes cluster from 1.8.1 &lt;br/&gt;
Cluster has one default bucket with 20 million items.  Data path is set to c:/data&lt;br/&gt;
10.3.2.11&lt;br/&gt;
10.3.2.12&lt;br/&gt;
10.3.2.16&lt;br/&gt;
10.3.2.10&lt;br/&gt;
10.3.2.75&lt;br/&gt;
&lt;br/&gt;
to 2.0.0-1971&lt;br/&gt;
10.3.2.11  (data path and index path is set to default path when install 2.0.0-1971)&lt;br/&gt;
10.3.2.16&lt;br/&gt;
10.3.2.75&lt;br/&gt;
10.3.2.76&lt;br/&gt;
10.3.2.77&lt;br/&gt;
&lt;br/&gt;
Change index path in node 11 to new path (c:/index), couchbase server on node 11 restart.&lt;br/&gt;
&lt;br/&gt;
curl -i -v --data &amp;quot;index_path=c:/index&amp;quot; &amp;quot;&lt;a href=&quot;http://Administrator:&quot;&gt;http://Administrator:&lt;/a&gt;&lt;a href=&apos;mailto:password@10.3.2.11&apos;&gt;password@10.3.2.11&lt;/a&gt;:8091/nodes/self/controller/settings&amp;quot; &lt;br/&gt;
* About to connect() to 10.3.2.11 port 8091 (#0)&lt;br/&gt;
*   Trying 10.3.2.11... Connection refused&lt;br/&gt;
* couldn&amp;#39;t connect to host&lt;br/&gt;
* Closing connection #0&lt;br/&gt;
curl: (7) couldn&amp;#39;t connect to host&lt;br/&gt;
&lt;br/&gt;
I try to run again with cygwin style path&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;curl -i -v --data &amp;quot;index_path=/cygdrive/c/index&amp;quot; &amp;quot;&lt;a href=&quot;http://Administrator:&quot;&gt;http://Administrator:&lt;/a&gt;&lt;a href=&apos;mailto:password@10.3.2.11&apos;&gt;password@10.3.2.11&lt;/a&gt;:8091/nodes/self/controller/settings&amp;quot; &lt;br/&gt;
* About to connect() to 10.3.2.11 port 8091 (#0)&lt;br/&gt;
*   Trying 10.3.2.11... connected&lt;br/&gt;
* Connected to 10.3.2.11 (10.3.2.11) port 8091 (#0)&lt;br/&gt;
* Server auth using Basic with user &amp;#39;Administrator&amp;#39;&lt;br/&gt;
&amp;gt; POST /nodes/self/controller/settings HTTP/1.1&lt;br/&gt;
&amp;gt; Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==&lt;br/&gt;
&amp;gt; User-Agent: curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18&lt;br/&gt;
&amp;gt; Host: 10.3.2.11:8091&lt;br/&gt;
&amp;gt; Accept: */*&lt;br/&gt;
&amp;gt; Content-Length: 28&lt;br/&gt;
&amp;gt; Content-Type: application/x-www-form-urlencoded&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;lt; HTTP/1.1 400 Bad Request&lt;br/&gt;
HTTP/1.1 400 Bad Request&lt;br/&gt;
&amp;lt; Server: Couchbase Server 2.0.0-1971-rel-enterprise&lt;br/&gt;
Server: Couchbase Server 2.0.0-1971-rel-enterprise&lt;br/&gt;
&amp;lt; Pragma: no-cache&lt;br/&gt;
Pragma: no-cache&lt;br/&gt;
&amp;lt; Date: Mon, 03 Dec 2012 21:14:06 GMT&lt;br/&gt;
Date: Mon, 03 Dec 2012 21:14:06 GMT&lt;br/&gt;
&amp;lt; Content-Type: application/json&lt;br/&gt;
Content-Type: application/json&lt;br/&gt;
&amp;lt; Content-Length: 47&lt;br/&gt;
Content-Length: 47&lt;br/&gt;
&amp;lt; Cache-Control: no-cache&lt;br/&gt;
Cache-Control: no-cache&lt;br/&gt;
&lt;br/&gt;
&amp;lt; &lt;br/&gt;
* Connection #0 to host 10.3.2.11 left intact&lt;br/&gt;
* Closing connection #0&lt;br/&gt;
[&amp;quot;An absolute path is required for index_path&amp;quot;]&lt;br/&gt;
&lt;br/&gt;
In log page, see couchbase server restart on node 11&lt;br/&gt;
&lt;br/&gt;
Couchbase Server has started on web port 8091 on node &amp;#39;&lt;a href=&apos;mailto:ns_1@10.3.2.11&apos;&gt;ns_1@10.3.2.11&lt;/a&gt;&amp;#39;. 	menelaus_sup001 	&lt;a href=&apos;mailto:ns_1@10.3.2.11&apos;&gt;ns_1@10.3.2.11&lt;/a&gt; 	13:12:38 - Mon Dec 3, 2012&lt;br/&gt;
Shutting down bucket &amp;quot;default&amp;quot; on &amp;#39;&lt;a href=&apos;mailto:ns_1@10.3.2.11&apos;&gt;ns_1@10.3.2.11&lt;/a&gt;&amp;#39; for server shutdown 	ns_memcached002 	&lt;a href=&apos;mailto:ns_1@10.3.2.11&apos;&gt;ns_1@10.3.2.11&lt;/a&gt; 	13:09:28 - Mon Dec 3, 2012&lt;br/&gt;
Setting database directory path to c:/Program Files/Couchbase/Server/var/lib/couchbase/data and index directory path to c:/index 	ns_storage_conf000 	&lt;a href=&apos;mailto:ns_1@10.3.2.11&apos;&gt;ns_1@10.3.2.11&lt;/a&gt; 	13:09:28 - Mon Dec 3, 2012&lt;br/&gt;
&lt;br/&gt;
Try connect to memcached on node 11, it hang&lt;br/&gt;
&lt;br/&gt;
&lt;a href=&apos;mailto:thuan@ubu-1604&apos;&gt;thuan@ubu-1604&lt;/a&gt;:/opt/couchbase/bin$ ./cbstats 10.3.2.11:11210 raw warmup&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
</description>
                <environment>Windows 2008 R2 64bit</environment>
            <key id="21093">MB-7337</key>
            <summary>[system test] node shown as pending for a long time after index path change</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="ketaki">Ketaki Gangal</assignee>
                                <reporter username="thuan">Thuan Nguyen</reporter>
                        <labels>
                        <label>system-test</label>
                    </labels>
                <created>Mon, 3 Dec 2012 15:48:15 -0600</created>
                <updated>Wed, 5 Dec 2012 15:22:59 -0600</updated>
                    <resolved>Wed, 5 Dec 2012 15:22:59 -0600</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0.1</fixVersion>
                                <component>ns_server</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="45300" author="thuan" created="Mon, 3 Dec 2012 17:58:00 -0600"  >Reproduce in ubuntu 11.04 64bit with couchbase server 2.0.0-1971&lt;br/&gt;
Install couchbase server 2.0.0-1971 on node 10.3.2.4 and set data and index to default path.&lt;br/&gt;
Create default bucket.&lt;br/&gt;
Change index path to /data from default path using curl command&lt;br/&gt;
&lt;br/&gt;
&lt;a href=&apos;mailto:huan@ubu-1604&apos;&gt;huan@ubu-1604&lt;/a&gt;:/opt/couchbase/bin$ curl -i -v --data &amp;quot;index_path=/data&amp;quot; &amp;quot;&lt;a href=&quot;http://Administrator:&quot;&gt;http://Administrator:&lt;/a&gt;&lt;a href=&apos;mailto:password@10.3.2.4&apos;&gt;password@10.3.2.4&lt;/a&gt;:8091/nodes/self/controller/settings&amp;quot; * About to connect() to 10.3.2.4 port 8091 (#0)&lt;br/&gt;
*   Trying 10.3.2.4... connected&lt;br/&gt;
* Connected to 10.3.2.4 (10.3.2.4) port 8091 (#0)&lt;br/&gt;
* Server auth using Basic with user &amp;#39;Administrator&amp;#39;&lt;br/&gt;
&amp;gt; POST /nodes/self/controller/settings HTTP/1.1&lt;br/&gt;
&amp;gt; Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==&lt;br/&gt;
&amp;gt; User-Agent: curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18&lt;br/&gt;
&amp;gt; Host: 10.3.2.4:8091&lt;br/&gt;
&amp;gt; Accept: */*&lt;br/&gt;
&amp;gt; Content-Length: 16&lt;br/&gt;
&amp;gt; Content-Type: application/x-www-form-urlencoded&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;lt; HTTP/1.1 200 OK&lt;br/&gt;
HTTP/1.1 200 OK&lt;br/&gt;
&amp;lt; Server: Couchbase Server 2.0.0-1971-rel-enterprise&lt;br/&gt;
Server: Couchbase Server 2.0.0-1971-rel-enterprise&lt;br/&gt;
&amp;lt; Pragma: no-cache&lt;br/&gt;
Pragma: no-cache&lt;br/&gt;
&amp;lt; Date: Mon, 03 Dec 2012 23:50:40 GMT&lt;br/&gt;
Date: Mon, 03 Dec 2012 23:50:40 GMT&lt;br/&gt;
&amp;lt; Content-Length: 0&lt;br/&gt;
Content-Length: 0&lt;br/&gt;
&amp;lt; Cache-Control: no-cache&lt;br/&gt;
Cache-Control: no-cache&lt;br/&gt;
&lt;br/&gt;
&amp;lt; &lt;br/&gt;
* Connection #0 to host 10.3.2.4 left intact&lt;br/&gt;
* Closing connection #0&lt;br/&gt;
&lt;br/&gt;
Couchbase server shutdown as in log below.&lt;br/&gt;
&lt;br/&gt;
Couchbase Server has started on web port 8091 on node &amp;#39;&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt;&amp;#39;. 	menelaus_sup001 	&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt; 	15:50:39 - Mon Dec 3, 2012&lt;br/&gt;
I&amp;#39;m the only node, so I&amp;#39;m the master. 	mb_master000 	&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt; 	15:50:39 - Mon Dec 3, 2012&lt;br/&gt;
Shutting down bucket &amp;quot;default&amp;quot; on &amp;#39;&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt;&amp;#39; for server shutdown 	ns_memcached002 	&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt; 	15:50:30 - Mon Dec 3, 2012&lt;br/&gt;
Setting database directory path to /opt/couchbase/var/lib/couchbase/data and index directory path to /data 	ns_storage_conf000 	&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt; 	15:50:30 - Mon Dec 3, 2012 </comment>
                    <comment id="45306" author="farshid" created="Mon, 3 Dec 2012 20:26:49 -0600"  >this is not a blocker bug because it does not destroy any data.&lt;br/&gt;
&lt;br/&gt;
we can add this to documentation that resetting the index path will restart the couchbase server</comment>
                    <comment id="45307" author="Aliaksey Artamonau" created="Mon, 3 Dec 2012 20:32:02 -0600"  >It&amp;#39;s not really because of index path change. The problem is that we introduced a regression that would kill memcached port (not memcached itself) only after 60 seconds of wait. In some scenarios this could cause a data loss. For instance, if someone shut couchbase server down and then reboots the machine. On the moment of reboot there can still be memcached process alive writing something to databases.</comment>
                    <comment id="45336" author="farshid" created="Tue, 4 Dec 2012 10:42:07 -0600"  >Alaiksey ,&lt;br/&gt;
&lt;br/&gt;
can you confirm the expected behavior ( after your fix ) :&lt;br/&gt;
1- should couchbase server itself restart ?&lt;br/&gt;
2- should memcached restart ? &lt;br/&gt;
3- does this restart mccouch ?&lt;br/&gt;
4- current index files are wiped out or kept as it is?&lt;br/&gt;
5- what happens to the ddoc definitions ? do they get copied over from original to the new location&lt;br/&gt;
6- does this API change the index path for all nodes in the cluster or is this per node ?</comment>
                    <comment id="45361" author="Aliaksey Artamonau" created="Tue, 4 Dec 2012 12:04:35 -0600"  >1-3. Yes, to apply path changes ns_server restarts itself entirely including memcached and mccouch.&lt;br/&gt;
4. Current index files are kept intact.&lt;br/&gt;
5. Design document definitions are stored in master database that is stored together with other databases (i.e. in the database directory).&lt;br/&gt;
6. The API is per node.</comment>
                    <comment id="45377" author="steve" created="Tue, 4 Dec 2012 13:14:43 -0600"  >&lt;a href=&quot;http://review.couchbase.org/#/c/23020/&quot;&gt;http://review.couchbase.org/#/c/23020/&lt;/a&gt;</comment>
                    <comment id="45392" author="steve" created="Tue, 4 Dec 2012 14:06:07 -0600"  >moved to 2.0.1 per bug-scrub.</comment>
                    <comment id="45449" author="andreibaranouski" created="Wed, 5 Dec 2012 07:22:13 -0600"  >build 1974, centos 5.7&lt;br/&gt;
&lt;br/&gt;
observation when change index path:&lt;br/&gt;
couchbase restarts, bucket was deleted&lt;br/&gt;
&lt;br/&gt;
Couchbase Server has started on web port 8091 on node &amp;#39;&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt;&amp;#39;.	menelaus_sup001	&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt;	16:11:24 - Wed Dec 5, 2012&lt;br/&gt;
I&amp;#39;m the only node, so I&amp;#39;m the master.	mb_master000	&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt;	16:11:24 - Wed Dec 5, 2012&lt;br/&gt;
Shutting down bucket &amp;quot;default&amp;quot; on &amp;#39;&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt;&amp;#39; for deletion	ns_memcached002	&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt;	16:11:16 - Wed Dec 5, 2012&lt;br/&gt;
Setting database directory path to /opt/couchbase/var/lib/couchbase/data and index directory path to /tmp	ns_storage_conf000	&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt;	16:11:16 - Wed Dec 5, 2012&lt;br/&gt;
Bucket &amp;quot;default&amp;quot; loaded on node &amp;#39;&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt;&amp;#39; in 0 seconds.	ns_memcached001	&lt;a href=&apos;mailto:ns_1@127.0.0.1&apos;&gt;ns_1@127.0.0.1&lt;/a&gt;	16:10:01 - Wed Dec 5, 2012&lt;br/&gt;
</comment>
                    <comment id="45476" author="Aliaksey Artamonau" created="Wed, 5 Dec 2012 12:14:26 -0600"  >Bucket should not be deleted when only index path is changed. I cannot reproduce it on my system. Could you please attach logs?</comment>
                    <comment id="45477" author="farshid" created="Wed, 5 Dec 2012 12:16:36 -0600"  >Ketaki,&lt;br/&gt;
&lt;br/&gt;
please reproduce and update logs or pass the cluster to Aliaksey A.</comment>
                    <comment id="45488" author="ketaki" created="Wed, 5 Dec 2012 13:57:49 -0600"  >Hi Aliaksey, &lt;br/&gt;
&lt;br/&gt;
I can repro this every time on my tests.&lt;br/&gt;
&lt;br/&gt;
- Create a 3 node cluster with 2 buckets.&lt;br/&gt;
-Load 10k items.&lt;br/&gt;
- Create 1 view&lt;br/&gt;
- Change index path : curl -i -v --data &amp;quot;index_path=/data&amp;quot; &amp;quot;&lt;a href=&quot;http://Administrator:&quot;&gt;http://Administrator:&lt;/a&gt;&lt;a href=&apos;mailto:password@10.1.3.176&apos;&gt;password@10.1.3.176&lt;/a&gt;:8091/nodes/self/controller/settings&amp;quot;&lt;br/&gt;
&lt;br/&gt;
Choosing the index path change on the *master node above. &lt;br/&gt;
&amp;nbsp;&lt;br/&gt;
- Post index path change, no data /bucket on the cluster.&lt;br/&gt;
- ls -a on nodes&lt;br/&gt;
shows empty @indexes file and empty data dir.&lt;br/&gt;
&lt;br/&gt;
[&lt;a href=&apos;mailto:root@grape-003&apos;&gt;root@grape-003&lt;/a&gt; couchbase]# cd data/&lt;br/&gt;
[&lt;a href=&apos;mailto:root@grape-003&apos;&gt;root@grape-003&lt;/a&gt; data]# ls&lt;br/&gt;
@indexes  isasl.pw  ns_log  _replicator.couch.1  _users.couch.1</comment>
                    <comment id="45491" author="ketaki" created="Wed, 5 Dec 2012 14:07:26 -0600"  >Adding logs here.</comment>
                    <comment id="45511" author="ketaki" created="Wed, 5 Dec 2012 15:01:19 -0600"  >Opened another bug to track the behaviour. &lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-7368&quot;&gt;http://www.couchbase.com/issues/browse/MB-7368&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
Not seeing above on the current testing.</comment>
                    <comment id="45512" author="Aliaksey Artamonau" created="Wed, 5 Dec 2012 15:22:28 -0600"  >We found that the issue was that we didn&amp;#39;t wait for memcached termination correctly. Then ns_server would start memcached again while the previous instance was still shutting down. Probably because it&amp;#39;s windows, no eaddrinuse errors were reported. ns_server was just unable to connect to memcached. When old memcached instance finally died, node returned to a good state.</comment>
                    <comment id="45513" author="Aliaksey Artamonau" created="Wed, 5 Dec 2012 15:22:59 -0600"  >fix merged</comment>
                </comments>
                    <attachments>
                    <attachment id="15965" name="6337.tar" size="14853632" author="ketaki" created="Wed, 5 Dec 2012 14:07:26 -0600" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                        <customfield id="customfield_10180" key="com.atlassian.jira.ext.charting:firstresponsedate">
                <customfieldname>Date of First Response</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>Mon, 3 Dec 2012 20:26:49 -0600</customfieldvalue>

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