<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Thu May 23 03:58:46 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-7342/MB-7342.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-7342] Touch with expiry time 0 does not work</title>
                <link>http://www.couchbase.com/issues/browse/MB-7342</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>According to the specification touch 0 should set the expiry time to never expire, but for couchbase buckets it cause the document to expire immediately (memcached buckets does the right thing here).&lt;br/&gt;
&lt;br/&gt;
Easy test is:&lt;br/&gt;
telnet localhost 11211&lt;br/&gt;
add a 1 30 1&lt;br/&gt;
a&lt;br/&gt;
touch a 0&lt;br/&gt;
get a&lt;br/&gt;
&lt;br/&gt;
On a couchbase bucket you won&amp;#39;t get anything back from the last get, whereas on memcached buckets you&amp;#39;ll get the document a.&lt;br/&gt;
&lt;br/&gt;
The bug is caused by the following code in ep_engine.cc (in EventuallyPersistentEngine::touch):&lt;br/&gt;
&lt;br/&gt;
exptime = serverApi-&amp;gt;core-&amp;gt;abstime(serverApi-&amp;gt;core-&amp;gt;realtime(exptime));&lt;br/&gt;
&lt;br/&gt;
Instead the code should be:&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (exptime != 0) {&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exptime = serverApi-&amp;gt;core-&amp;gt;abstime(serverApi-&amp;gt;core-&amp;gt;realtime(exptime));&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
</description>
                <environment>Couchbase server 2.0 build 1971</environment>
            <key id="21099">MB-7342</key>
            <summary>Touch with expiry time 0 does not work</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="chiyoung">Chiyoung Seo</assignee>
                                <reporter username="trond">Trond Norbye</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Dec 2012 03:03:52 -0600</created>
                <updated>Wed, 19 Dec 2012 03:21:34 -0600</updated>
                    <resolved>Tue, 4 Dec 2012 17:32:54 -0600</resolved>
                            <version>2.0-beta-2</version>
                                <fixVersion>2.0</fixVersion>
                                <component>couchbase-bucket</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="45317" author="trond" created="Tue, 4 Dec 2012 03:46:26 -0600"  >&lt;a href=&quot;http://review.couchbase.org/23024&quot;&gt;http://review.couchbase.org/23024&lt;/a&gt;&lt;br/&gt;
</comment>
                    <comment id="45331" author="farshid" created="Tue, 4 Dec 2012 10:17:08 -0600"  >Raising this to blocker since this is a regression and it can impacts current users</comment>
                    <comment id="45412" author="mikew" created="Tue, 4 Dec 2012 17:32:54 -0600"  >&lt;a href=&quot;http://review.couchbase.org/#/c/23024/&quot;&gt;http://review.couchbase.org/#/c/23024/&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
Change was merged.</comment>
                    <comment id="46296" author="thuan" created="Wed, 19 Dec 2012 03:21:34 -0600"  >Integrated in github-ep-engine-2-0 #461 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-ep-engine-2-0/461/&quot;&gt;http://qa.hq.northscale.net/job/github-ep-engine-2-0/461/&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-7342&quot; title=&quot;Touch with expiry time 0 does not work&quot;&gt;&lt;strike&gt;MB-7342&lt;/strike&gt;&lt;/a&gt;: Fix touch with exp time 0 (Revision 3b59a3089bb865fc0535c288dc4977915850c480)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
Trond Norbye : &lt;br/&gt;
Files : &lt;br/&gt;
* tests/ep_testsuite.cc&lt;br/&gt;
* src/ep_engine.cc&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>Tue, 4 Dec 2012 10:17:08 -0600</customfieldvalue>

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