<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Tue May 21 03:34:08 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-3972/MB-3972.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-3972] setting a new value for an expired item before the pager cleans up the value from memory causes memory leak</title>
                <link>http://www.couchbase.com/issues/browse/MB-3972</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>this can cause a huge memory spike&lt;br/&gt;
example&lt;br/&gt;
&lt;br/&gt;
while True:&lt;br/&gt;
mc.set(key,1,0,..)&lt;br/&gt;
&lt;br/&gt;
we do not overwrite the value in kv table because expiration is less than 3 so for every set we end up creating a new value in the kv table&lt;br/&gt;
&lt;br/&gt;
this is not a real use case but is seen very often while testing ( e.g a script sent by one of the customers was causing this issue)&lt;br/&gt;
&lt;br/&gt;
for example if you have a working set of 4000 keys ( data 400 mb) and you loop 400 times and invoke a mc.set(key,2,..) after 10 minutes you will end up with 4x400Mb&lt;br/&gt;
</description>
                <environment></environment>
            <key id="14334">MB-3972</key>
            <summary>setting a new value for an expired item before the pager cleans up the value from memory causes memory leak</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="chiyoung">Chiyoung Seo</assignee>
                                <reporter username="farshid">Farshid Ghods</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Jun 2011 18:29:11 -0500</created>
                <updated>Tue, 10 Apr 2012 21:03:14 -0500</updated>
                    <resolved>Thu, 14 Jul 2011 18:03:24 -0500</resolved>
                            <version>1.6.5.3</version>
                                <fixVersion>1.7.1</fixVersion>
                                <component>couchbase-bucket</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="21138" author="farshid" created="Wed, 8 Jun 2011 18:34:55 -0500"  >the workaround is to use larger expiration values (&amp;gt;5)</comment>
                    <comment id="21139" author="farshid" created="Wed, 8 Jun 2011 18:55:43 -0500"  >we end up with duplicate keys in the database with different expiration times.&lt;br/&gt;
</comment>
                    <comment id="21179" author="farshid" created="Thu, 16 Jun 2011 14:01:28 -0500"  >Integrated in github-ep-engine-1-7-1 #123 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-ep-engine-1-7-1/123/&quot;&gt;http://qa.hq.northscale.net/job/github-ep-engine-1-7-1/123/&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-3972&quot; title=&quot;setting a new value for an expired item before the pager cleans up the value from memory causes memory leak&quot;&gt;&lt;strike&gt;MB-3972&lt;/strike&gt;&lt;/a&gt; Set should overwrite an expired item that is not purged yet&lt;br/&gt;
&lt;br/&gt;
Chiyoung Seo : &lt;br/&gt;
Files : &lt;br/&gt;
* stored-value.hh&lt;br/&gt;
* ep_testsuite.cc&lt;br/&gt;
</comment>
                    <comment id="21305" author="farshid" created="Wed, 6 Jul 2011 12:00:43 -0500"  >Integrated in github-ep-engine-2-0 #13 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-ep-engine-2-0/13/&quot;&gt;http://qa.hq.northscale.net/job/github-ep-engine-2-0/13/&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-3972&quot; title=&quot;setting a new value for an expired item before the pager cleans up the value from memory causes memory leak&quot;&gt;&lt;strike&gt;MB-3972&lt;/strike&gt;&lt;/a&gt; Set should overwrite an expired item that is not purged yet&lt;br/&gt;
&lt;br/&gt;
Chiyoung Seo : &lt;br/&gt;
Files : &lt;br/&gt;
* stored-value.hh&lt;br/&gt;
* ep_testsuite.cc&lt;br/&gt;
</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                                                            <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>6430</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>