<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Fri May 24 12:58:38 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-7341/MB-7341.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-7341] [2.0-hotfix candidate] Offline upgrade hangs at cbtransfer converting sqlite file to couchstorefile</title>
                <link>http://www.couchbase.com/issues/browse/MB-7341</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>Have a 4 nodes cluster (&lt;a href=&quot;http://172.23.96.12:8091&quot;&gt;http://172.23.96.12:8091&lt;/a&gt;). 1 default buckets 40G RAM on each node for the bucket. 200M items (920 G) in bucket. Resident is as low as 8.3%. &lt;br/&gt;
Try to do an offline upgrade from 181 to 2.0 build 1971: &lt;br/&gt;
&lt;br/&gt;
[&lt;a href=&apos;mailto:root@thor05&apos;&gt;root@thor05&lt;/a&gt; ~]# rpm -U couchbase-server-enterprise_x86_64_2.0.0-1971-rel.rpm &lt;br/&gt;
Stopping couchbase-server ... &lt;br/&gt;
Stopping couchbase-server &lt;br/&gt;
Upgrading couchbase-server ... &lt;br/&gt;
&amp;nbsp;&amp;nbsp;/opt/couchbase/bin/install/cbupgrade -c /opt/couchbase/var/lib/couchbase/config -a yes &lt;br/&gt;
Automatic mode: running without interactive questions or confirmations. &lt;br/&gt;
Upgrading your Couchbase Server to 2.0.0-1971-rel. &lt;br/&gt;
The upgrade process might take awhile. &lt;br/&gt;
Analysing... &lt;br/&gt;
Previous config.dat file is /opt/couchbase/var/lib/couchbase/config/config.dat &lt;br/&gt;
Target node: &lt;a href=&apos;mailto:ns_1@172.23.96.14&apos;&gt;ns_1@172.23.96.14&lt;/a&gt; &lt;br/&gt;
&lt;br/&gt;
Couchbase should not be running. &lt;br/&gt;
&amp;nbsp;&amp;nbsp;Please use: /etc/init.d/couchbase-server stop &lt;br/&gt;
&lt;br/&gt;
Database dir: /data2 &lt;br/&gt;
&lt;br/&gt;
Buckets to upgrade: default &lt;br/&gt;
&lt;br/&gt;
Checking disk space available for buckets in directory: &lt;br/&gt;
&amp;nbsp;&amp;nbsp;/data2 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;Free disk bucket space wanted: 494982651904.0 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;Free disk bucket space available: 570048225280 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;Free disk space factor: 2.0 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;Ok. &lt;br/&gt;
&lt;br/&gt;
Analysis complete. &lt;br/&gt;
&lt;br/&gt;
Copying /opt/couchbase/var/lib/couchbase/config/config.dat &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cp /opt/couchbase/var/lib/couchbase/config/config.dat /opt/couchbase/bin/install/../../var/lib/couchbase/config/config.dat &lt;br/&gt;
Copying /opt/couchbase/var/lib/couchbase/ip &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cp /opt/couchbase/var/lib/couchbase/ip /opt/couchbase/bin/install/../../var/lib/couchbase/ip &lt;br/&gt;
Ensuring bucket data directories. &lt;br/&gt;
Ensuring bucket data directory: /data2/default &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mkdir -p /data2/default &lt;br/&gt;
Ensuring dbdir owner/group: /data2 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;chown -R couchbase:couchbase /data2 &lt;br/&gt;
Ensuring dbdir owner/group: /opt/couchbase/var/lib/couchbase/data &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;chown -R couchbase:couchbase /opt/couchbase/var/lib/couchbase/data &lt;br/&gt;
Upgrading buckets. &lt;br/&gt;
Upgrading bucket: default &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/opt/couchbase/bin/install/../cbtransfer /data2/default-data/default &lt;a href=&quot;couchstore-files:///data2&quot;&gt;couchstore-files:///data2&lt;/a&gt; -b default --source-vbucket-state=active --destination-vbucket-state=active &lt;br/&gt;
cbdbupgrade pid: 14416 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;[ ] 0.0% (0/49997137 msgs) &lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
Offline upgrade hangs</description>
                <environment>Linux version 2.6.18-308.el5 (&lt;a href=&apos;mailto:mockbuild@builder10.centos.org&apos;&gt;mockbuild@builder10.centos.org&lt;/a&gt;) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-52))</environment>
            <key id="21097">MB-7341</key>
            <summary>[2.0-hotfix candidate] Offline upgrade hangs at cbtransfer converting sqlite file to couchstorefile</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="bcui">Bin Cui</assignee>
                                <reporter username="Chisheng">Chisheng Hong</reporter>
                        <labels>
                        <label>2.0-hotfix</label>
                        <label>2.0-release-notes</label>
                    </labels>
                <created>Mon, 3 Dec 2012 20:39:51 -0600</created>
                <updated>Mon, 28 Jan 2013 23:44:40 -0600</updated>
                    <resolved>Tue, 18 Dec 2012 16:45:05 -0600</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0.1</fixVersion>
                                <component>installer</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="45389" author="steve" created="Tue, 4 Dec 2012 13:59:47 -0600"  >moved to 2.0.1 per bug-scrub.&lt;br/&gt;
&lt;br/&gt;
And, also recommend users do online upgrade, especially on huge datasizes and highly fragmented sqlite.</comment>
                    <comment id="45422" author="bcui" created="Tue, 4 Dec 2012 21:28:10 -0600"  >&lt;a href=&quot;http://review.couchbase.org/#/c/23073/&quot;&gt;http://review.couchbase.org/#/c/23073/&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
Further observation:&lt;br/&gt;
1. cbtransfter was not stucked but just slow to retrieve items from sqlite files.  Since cbtransfer will retrieve items vbucket by vbucket and in reverse vbucket id order, and all vbucket 512 to 937 are all replica vbuckets, it will retrieve none of active items. And it is quite time consuming to execute sql statement against fragmented sqlite files. &lt;br/&gt;
2. We can optimize sqlite access process to simply skip the whole kv table based on vbucket id and vbucket state. If we want to retrieve active items, we can easily jump to the first table that contains active items.&lt;br/&gt;
&lt;br/&gt;
</comment>
                    <comment id="45423" author="bcui" created="Tue, 4 Dec 2012 21:28:14 -0600"  >&lt;a href=&quot;http://review.couchbase.org/#/c/23073/&quot;&gt;http://review.couchbase.org/#/c/23073/&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
Further observation:&lt;br/&gt;
1. cbtransfter was not stucked but just slow to retrieve items from sqlite files.  Since cbtransfer will retrieve items vbucket by vbucket and in reverse vbucket id order, and all vbucket 512 to 937 are all replica vbuckets, it will retrieve none of active items. And it is quite time consuming to execute sql statement against fragmented sqlite files. &lt;br/&gt;
2. We can optimize sqlite access process to simply skip the whole kv table based on vbucket id and vbucket state. If we want to retrieve active items, we can easily jump to the first table that contains active items.&lt;br/&gt;
&lt;br/&gt;
</comment>
                    <comment id="45481" author="kzeller" created="Wed, 5 Dec 2012 13:17:32 -0600"  >Added to RN as:    Performing an upgrade from Couchbase 1.8.1 to Couchbase 2.0.0 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GA build freezes while transfering data from SQLite files &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;to Couchstore files using &amp;lt;command&amp;gt;cbtransfer&amp;lt;/command&amp;gt;.</comment>
                    <comment id="45538" author="steve" created="Wed, 5 Dec 2012 20:21:35 -0600"  >Hmmm, looks like I put the wrong commit msg on this change, but it went in anyways...&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;just a warning msg that cbupgrade could take awhile, asked by Farshid: &lt;a href=&quot;http://review.couchbase.org/23112&quot;&gt;http://review.couchbase.org/23112&lt;/a&gt; </comment>
                    <comment id="45544" author="bcui" created="Wed, 5 Dec 2012 21:04:10 -0600"  >One one setup to upgrade 50m items, it takes:&lt;br/&gt;
&lt;br/&gt;
[&lt;a href=&apos;mailto:root@thor08&apos;&gt;root@thor08&lt;/a&gt; data]# time /opt/couchbase/bin/install/../cbtransfer /data/thor05/default-data/default &lt;a href=&quot;couchstore-files:///data/test&quot;&gt;couchstore-files:///data/test&lt;/a&gt;&lt;br/&gt;
da default --source-vbucket-state=active --destination-vbucket-state=active&lt;br/&gt;
&amp;nbsp;&amp;nbsp;[#######             ] 33.6% (16797698/49997137 msgs))&lt;br/&gt;
&amp;nbsp;&amp;nbsp;[####################] 100.0% (49997137/49997137 msgs)&lt;br/&gt;
bucket: default, msgs transferred...&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;:                total |         last |    per sec&lt;br/&gt;
&amp;nbsp;batch :               294023 |       294023 |        9.9&lt;br/&gt;
&amp;nbsp;byte  :         117679410715 | 117679410715 |  3971062.9&lt;br/&gt;
&amp;nbsp;msg   :             49997137 |     49997137 |     1687.1&lt;br/&gt;
done&lt;br/&gt;
&lt;br/&gt;
real    493m54.341s&lt;br/&gt;
user    177m43.942s&lt;br/&gt;
sys     30m50.346s&lt;br/&gt;
</comment>
                    <comment id="46496" author="plabee" created="Fri, 21 Dec 2012 12:44:16 -0600"  >Attached hotfix zipfile:  couchbase-server-2.0.0-HOTFIX-&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-7341&quot; title=&quot;[2.0-hotfix candidate] Offline upgrade hangs at cbtransfer converting sqlite file to couchstorefile&quot;&gt;&lt;strike&gt;MB-7341&lt;/strike&gt;&lt;/a&gt;.zip</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10001">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                        <customfield id="customfield_10180" key="com.atlassian.jira.ext.charting:firstresponsedate">
                <customfieldname>Date of First Response</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>Tue, 4 Dec 2012 13:59:47 -0600</customfieldvalue>

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