<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Thu May 23 22:03: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-6176/MB-6176.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-6176] cbbackup/cbrestore doesn&apos;t backup and restore item flag correctly</title>
                <link>http://www.couchbase.com/issues/browse/MB-6176</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>I create one item on one node and restore it to another node. I use memcached client to check the item flag before and after backup/restore. The item flag mismatches.&lt;br/&gt;
&lt;br/&gt;
Chishengs-MacBook-Pro:membase-cli chisheng$ ./cbbackup &lt;a href=&quot;http://Administrator:&quot;&gt;http://Administrator:&lt;/a&gt;&lt;a href=&apos;mailto:password@10.5.2.22&apos;&gt;password@10.5.2.22&lt;/a&gt;:8091 ~/backup/backup2&lt;br/&gt;
&amp;nbsp;&amp;nbsp;[####################] 100.0% (1/1 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 :                    4 |          4 |       81.5&lt;br/&gt;
&amp;nbsp;byte  :                    5 |          5 |      101.9&lt;br/&gt;
&amp;nbsp;msg   :                    1 |          1 |       20.4&lt;br/&gt;
done&lt;br/&gt;
&lt;br/&gt;
Chishengs-MacBook-Pro:membase-cli chisheng$ ./cbrestore ~/backup/backup2 &lt;a href=&quot;http://Administrator:&quot;&gt;http://Administrator:&lt;/a&gt;&lt;a href=&apos;mailto:password@10.5.2.23&apos;&gt;password@10.5.2.23&lt;/a&gt;:8091 -x try_xwm=0&lt;br/&gt;
&amp;nbsp;&amp;nbsp;[####################] 100.0% (1/1 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 :                    1 |          1 |       15.7&lt;br/&gt;
&amp;nbsp;byte  :                    5 |          5 |       78.5&lt;br/&gt;
&amp;nbsp;msg   :                    1 |          1 |       15.7&lt;br/&gt;
done&lt;br/&gt;
&lt;br/&gt;
The python output:&lt;br/&gt;
&amp;gt;&amp;gt;&amp;gt; c= MemcachedClient(&amp;#39;10.5.2.22&amp;#39;,11211)&lt;br/&gt;
&amp;gt;&amp;gt;&amp;gt; c.set(&amp;quot;chisheng&amp;quot;,0,0xfffffff0,&amp;quot;lindy&amp;quot;)&lt;br/&gt;
(4288761800, 5038202653468618, &amp;#39;&amp;#39;)&lt;br/&gt;
&amp;gt;&amp;gt;&amp;gt; c.get(&amp;quot;chisheng&amp;quot;)&lt;br/&gt;
(4294967280, 5038202653468618, &amp;#39;lindy&amp;#39;)&lt;br/&gt;
&amp;gt;&amp;gt;&amp;gt; a=MemcachedClient(&amp;#39;10.5.2.23&amp;#39;, 11211)&lt;br/&gt;
&amp;gt;&amp;gt;&amp;gt; a.get(&amp;quot;chisheng&amp;quot;)&lt;br/&gt;
(4043309055, 5039149778647819, &amp;#39;lindy&amp;#39;)&lt;br/&gt;
&lt;br/&gt;
The first field is the item flag for the return value for get()&lt;br/&gt;
</description>
                <environment></environment>
            <key id="18940">MB-6176</key>
            <summary>cbbackup/cbrestore doesn&apos;t backup and restore item flag correctly</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/major.png">Major</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="steve">Steve Yen</assignee>
                                <reporter username="Chisheng">Chisheng Hong</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Aug 2012 19:12:38 -0500</created>
                <updated>Mon, 10 Sep 2012 15:00:45 -0500</updated>
                    <resolved>Fri, 10 Aug 2012 20:16:59 -0500</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0</fixVersion>
                                <component>tools</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="35090" author="Chisheng" created="Thu, 9 Aug 2012 19:19:22 -0500"  >Hi Steve,&lt;br/&gt;
I notice the cas value also mismatch before and after the backup/restore. Should I file another bug for that. Or you already work on that?</comment>
                    <comment id="35135" author="steve" created="Fri, 10 Aug 2012 14:05:43 -0500"  >Also, this was for 2.0 servers.&lt;br/&gt;
&lt;br/&gt;
(And, the CAS thing would be a separate bug.  In general, don&amp;#39;t tack separate issues into the same bug.)</comment>
                    <comment id="35147" author="steve" created="Fri, 10 Aug 2012 15:44:02 -0500"  >This is because the TAP protocol isn&amp;#39;t using network-byte-order by default for item flags.  The cbbackup client needs to use the TAP_CONNECT_TAP_FIX_FLAG_BYTEORDER flag when doing its initial TAP connect.</comment>
                    <comment id="35179" author="Chisheng" created="Fri, 10 Aug 2012 19:44:08 -0500"  >Shall I add this flag in command line?</comment>
                    <comment id="35182" author="steve" created="Fri, 10 Aug 2012 19:59:09 -0500"  >No, the TAP_CONNECT_TAP_FIX_FLAG_BYTEORDER is a code-level change, and there won&amp;#39;t be any expected command-line parameter changes as part of the fix.</comment>
                    <comment id="35196" author="steve" created="Fri, 10 Aug 2012 20:04:37 -0500"  >ep-engine change...&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://review.couchbase.org/19496&quot;&gt;http://review.couchbase.org/19496&lt;/a&gt;</comment>
                    <comment id="35202" author="steve" created="Fri, 10 Aug 2012 20:16:59 -0500"  >on gerrit...&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://review.couchbase.org/19499&quot;&gt;http://review.couchbase.org/19499&lt;/a&gt;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://review.couchbase.org/19500&quot;&gt;http://review.couchbase.org/19500&lt;/a&gt;&lt;br/&gt;
</comment>
                    <comment id="35230" author="thuan" created="Sat, 11 Aug 2012 05:14:02 -0500"  >Integrated in github-ep-engine-2-0 #395 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-ep-engine-2-0/395/&quot;&gt;http://qa.hq.northscale.net/job/github-ep-engine-2-0/395/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-6176&quot; title=&quot;cbbackup/cbrestore doesn&amp;#39;t backup and restore item flag correctly&quot;&gt;&lt;strike&gt;MB-6176&lt;/strike&gt;&lt;/a&gt;: expose TAP_FLAG_TAP_FIX_FLAG_BYTEORDER to python (Revision 3ecd7e346c5c1f54df6b9e1706f6d58198881a81)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
Steve Yen : &lt;br/&gt;
Files : &lt;br/&gt;
* management/memcacheConstants.py&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>Fri, 10 Aug 2012 14:05:43 -0500</customfieldvalue>

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