<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Sat May 25 10:28:18 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-6860/MB-6860.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-6860] [system test] Index file descriptor leaks</title>
                <link>http://www.couchbase.com/issues/browse/MB-6860</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>Create a 8 nodes cluster installed with couchbase server 2.0.0-1808. Consistent view is disable.&lt;br/&gt;
Each node has 14 GB RAM and 2 ebs volumes, one for /data and another for /view&lt;br/&gt;
Create 2 bucket and load 9 million items to each bucket.&lt;br/&gt;
Create 3 doc, one for default bucket and 2 for saslbucket.&lt;br/&gt;
&lt;br/&gt;
Let cluster running with load ~ 18K ops for each bucket in more than one day.&lt;br/&gt;
Check view directory, I see 2 nodes with disk usage more than 20% &lt;br/&gt;
&lt;br/&gt;
Thuans-MacBook-Pro:testrunner thuan$ python scripts/ssh.py -i ../ini/8-ec2-orange.ini &amp;quot;df -kh /view&amp;quot;&lt;br/&gt;
ec2-50-112-210-248.us-west-2.compute.amazonaws.com&lt;br/&gt;
Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/xvdj             247G   60G  175G  26% /view&lt;br/&gt;
&lt;br/&gt;
ec2-50-112-46-220.us-west-2.compute.amazonaws.com&lt;br/&gt;
Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/xvdj             247G  4.4G  230G   2% /view&lt;br/&gt;
&lt;br/&gt;
ec2-54-245-38-16.us-west-2.compute.amazonaws.com&lt;br/&gt;
Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/xvdj             247G   28G  207G  12% /view&lt;br/&gt;
&lt;br/&gt;
ec2-50-112-52-162.us-west-2.compute.amazonaws.com&lt;br/&gt;
Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/xvdj             247G   45G  189G  20% /view&lt;br/&gt;
&lt;br/&gt;
ec2-50-112-17-129.us-west-2.compute.amazonaws.com&lt;br/&gt;
Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/xvdj             247G   27G  208G  12% /view&lt;br/&gt;
&lt;br/&gt;
ec2-54-245-55-107.us-west-2.compute.amazonaws.com&lt;br/&gt;
Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/xvdj             247G  7.4G  227G   4% /view&lt;br/&gt;
&lt;br/&gt;
ec2-54-245-24-204.us-west-2.compute.amazonaws.com&lt;br/&gt;
Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/xvdj             247G  9.4G  225G   4% /view&lt;br/&gt;
&lt;br/&gt;
ec2-50-112-86-218.us-west-2.compute.amazonaws.com&lt;br/&gt;
Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/xvdj             247G   13G  221G   6% /view&lt;br/&gt;
&lt;br/&gt;
** Go to ec2-50-112-210-248.us-west-2.compute.amazonaws.com node, I see actual file size for all index files around 2.8GB&lt;br/&gt;
&lt;br/&gt;
[&lt;a href=&apos;mailto:root@ip-10-249-0-36&apos;&gt;root@ip-10-249-0-36&lt;/a&gt; view]# du -hs&lt;br/&gt;
3.0G	.&lt;br/&gt;
&lt;br/&gt;
[&lt;a href=&apos;mailto:root@ip-10-249-0-36&apos;&gt;root@ip-10-249-0-36&lt;/a&gt; view]# df -kh | grep view&lt;br/&gt;
/dev/xvdj             247G   60G  175G  26% /view&lt;br/&gt;
&lt;br/&gt;
** Do lsof +L1, see beam.smp is holding many delete files make them not to be deleted.&lt;br/&gt;
&lt;br/&gt;
[&lt;a href=&apos;mailto:root@ip-10-249-0-36&apos;&gt;root@ip-10-249-0-36&lt;/a&gt; view]# lsof +L1 | grep view&lt;br/&gt;
beam.smp 18926 couchbase   53u   REG 202,144          39     0 15859715 /view/.delete/0ed16b72a6e2e1d043b59ba006f32828 (deleted)&lt;br/&gt;
beam.smp 18926 couchbase   55u   REG 202,144          39     0 15073283 /view/.delete/2d6e9162017b08fa0cb8d5aadaef4311 (deleted)&lt;br/&gt;
beam.smp 18926 couchbase   56r   REG 202,144          39     0 15073283 /view/.delete/2d6e9162017b08fa0cb8d5aadaef4311 (deleted)&lt;br/&gt;
beam.smp 18926 couchbase   57w   REG 202,144          39     0 15073283 /view/.delete/2d6e9162017b08fa0cb8d5aadaef4311 (deleted)&lt;br/&gt;
beam.smp 18926 couchbase   59r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase   64u   REG 202,144   152048674     0 14417947 /view/.delete/85177d34a8fbdd8e851ca37329356a72 (deleted)&lt;br/&gt;
beam.smp 18926 couchbase   66r   REG 202,144          39     0 15859715 /view/.delete/0ed16b72a6e2e1d043b59ba006f32828 (deleted)&lt;br/&gt;
beam.smp 18926 couchbase   79w   REG 202,144          39     0 15859715 /view/.delete/0ed16b72a6e2e1d043b59ba006f32828 (deleted)&lt;br/&gt;
beam.smp 18926 couchbase   88r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase   95r   REG 202,144 25548094584     0 14417926 /view/.delete/2d5d22317781e50b64dde53e74ca8a01 (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  105w   REG 202,144           0     0 14417929 /view/@indexes/default/replica_87d0cc9a8fffc2e1e434f6ddbb0c168d.view.log (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  113u   REG 202,144   152048674     0 14417947 /view/.delete/85177d34a8fbdd8e851ca37329356a72 (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  121r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  136r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  138r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  144r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  155r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  164r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  178r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  187r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  194r   REG 202,144  7679604520     0 14417924 /view/.delete/fa9cd11ed6b0f873c825fba96ee44c94 (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  195r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  196r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  205r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  213r   REG 202,144  4087670002     0 14417931 /view/.delete/a7418018f1977c4a4c614ad801ac8add (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  231r   REG 202,144 22818230272     0 14417927 /view/.delete/319125a97816c48c70500af867ddae5b (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  263w   REG 202,144           0     0 14417935 /view/@indexes/default/replica_87d0cc9a8fffc2e1e434f6ddbb0c168d.view.log (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  278r   REG 202,144 22818230272     0 14417927 /view/.delete/319125a97816c48c70500af867ddae5b (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  334w   REG 202,144           0     0 14417936 /view/@indexes/default/replica_87d0cc9a8fffc2e1e434f6ddbb0c168d.view.log (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  374r   REG 202,144 22818230272     0 14417927 /view/.delete/319125a97816c48c70500af867ddae5b (deleted)&lt;br/&gt;
beam.smp 18926 couchbase  384r   REG 202,144 22818230272     0 14417927 /view/.delete/319125a97816c48c70500af867ddae5b (deleted)&lt;br/&gt;
[&lt;a href=&apos;mailto:root@ip-10-249-0-36&apos;&gt;root@ip-10-249-0-36&lt;/a&gt; view]# &lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
</description>
                <environment>centos 6.2 64bit  build 2.0.0-1808</environment>
            <key id="20160">MB-6860</key>
            <summary>[system test] Index file descriptor leaks</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="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="FilipeManana">Filipe Manana</assignee>
                                <reporter username="thuan">Thuan Nguyen</reporter>
                        <labels>
                        <label>system-test</label>
                    </labels>
                <created>Tue, 9 Oct 2012 15:09:16 -0500</created>
                <updated>Thu, 10 Jan 2013 01:55:22 -0600</updated>
                    <resolved>Tue, 23 Oct 2012 09:58:54 -0500</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0</fixVersion>
                                <component>view-engine</component>
                                <votes>0</votes>
                        <watches>2</watches>
                                                    <comments>
                    <comment id="40863" author="FilipeManana" created="Tue, 9 Oct 2012 15:50:11 -0500"  >The information you give doesn&amp;#39;t mean necessarily a problem.&lt;br/&gt;
It&amp;#39;s common to delete files and keep them open for a while in couchdb (both core database and all the view engines).&lt;br/&gt;
&lt;br/&gt;
You need to tell me for how long you see the same files open after deleted, and, provide all server logs. Otherwise I can&amp;#39;t help that much.</comment>
                    <comment id="40864" author="thuan" created="Tue, 9 Oct 2012 16:07:23 -0500"  >I saw this behavious from yesterday after noon, Oct 8 2012.  The percentage of view directory aound 20%. The actual index file size is about 3 GB.  So we lost 57GB disk space (20 x more than curent index file size).&lt;br/&gt;
Link to collect info from all nodes  &lt;a href=&quot;https://s3.amazonaws.com/packages.couchbase/collect_info/ec2/20121008/8nodes-1808-ec2-colinfo-tmp-files-not-del-201009-144222.tgz&quot;&gt;https://s3.amazonaws.com/packages.couchbase/collect_info/ec2/20121008/8nodes-1808-ec2-colinfo-tmp-files-not-del-201009-144222.tgz&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
** Disk space stats before stop couchbase server on node ec2-50-112-210-248.us-west-2.compute.amazonaws.com&lt;br/&gt;
&lt;br/&gt;
Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/xvdj             247G   59G  175G  26% /view&lt;br/&gt;
&lt;br/&gt;
** Restart couchbase server on node ec2-50-112-210-248.us-west-2.compute.amazonaws.com&lt;br/&gt;
** Disk space stats after restart&lt;br/&gt;
Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/xvdj             247G  2.9G  231G   2% /view&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/xvdj             247G  3.7G  230G   2% /view&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/xvdj             247G  4.2G  230G   2% /view&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
** lsof after restart couchbase server&lt;br/&gt;
&lt;br/&gt;
[&lt;a href=&apos;mailto:root@ip-10-249-0-36&apos;&gt;root@ip-10-249-0-36&lt;/a&gt; view]# lsof +L1 | grep view&lt;br/&gt;
beam.smp 27788 couchbase   86u   REG 202,144       39     0 15073283 /view/.delete/ca7d4c1fd9d1438949e8da3e787d37b3 (deleted)&lt;br/&gt;
beam.smp 27788 couchbase   87r   REG 202,144       39     0 15073283 /view/.delete/ca7d4c1fd9d1438949e8da3e787d37b3 (deleted)&lt;br/&gt;
beam.smp 27788 couchbase   88w   REG 202,144       39     0 15073283 /view/.delete/ca7d4c1fd9d1438949e8da3e787d37b3 (deleted)&lt;br/&gt;
beam.smp 27788 couchbase  122u   REG 202,144       39     0 15859715 /view/.delete/1ee36838873600759cc33861e05d0727 (deleted)&lt;br/&gt;
beam.smp 27788 couchbase  127r   REG 202,144       39     0 15859715 /view/.delete/1ee36838873600759cc33861e05d0727 (deleted)&lt;br/&gt;
beam.smp 27788 couchbase  128w   REG 202,144       39     0 15859715 /view/.delete/1ee36838873600759cc33861e05d0727 (deleted)&lt;br/&gt;
[&lt;a href=&apos;mailto:root@ip-10-249-0-36&apos;&gt;root@ip-10-249-0-36&lt;/a&gt; view]# &lt;br/&gt;
[&lt;a href=&apos;mailto:root@ip-10-249-0-36&apos;&gt;root@ip-10-249-0-36&lt;/a&gt; view]# &lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
[&lt;a href=&apos;mailto:root@ip-10-249-0-36&apos;&gt;root@ip-10-249-0-36&lt;/a&gt; view]# lsof +L1 | grep view&lt;br/&gt;
beam.smp 27788 couchbase   42r   REG 202,144 523514916     0 14417923 /view/.delete/b68bb430742efb491d21bbe9f15615c9 (deleted)&lt;br/&gt;
beam.smp 27788 couchbase   44r   REG 202,144 151753762     0 14417940 /view/.delete/230ae91e0bffbceca514d6667c966d5f (deleted)&lt;br/&gt;
beam.smp 27788 couchbase   86u   REG 202,144        39     0 15073283 /view/.delete/ca7d4c1fd9d1438949e8da3e787d37b3 (deleted)&lt;br/&gt;
beam.smp 27788 couchbase   87r   REG 202,144        39     0 15073283 /view/.delete/ca7d4c1fd9d1438949e8da3e787d37b3 (deleted)&lt;br/&gt;
beam.smp 27788 couchbase   88w   REG 202,144        39     0 15073283 /view/.delete/ca7d4c1fd9d1438949e8da3e787d37b3 (deleted)&lt;br/&gt;
beam.smp 27788 couchbase  122u   REG 202,144        39     0 15859715 /view/.delete/1ee36838873600759cc33861e05d0727 (deleted)&lt;br/&gt;
beam.smp 27788 couchbase  127r   REG 202,144        39     0 15859715 /view/.delete/1ee36838873600759cc33861e05d0727 (deleted)&lt;br/&gt;
beam.smp 27788 couchbase  128w   REG 202,144        39     0 15859715 /view/.delete/1ee36838873600759cc33861e05d0727 (deleted)&lt;br/&gt;
[&lt;a href=&apos;mailto:root@ip-10-249-0-36&apos;&gt;root@ip-10-249-0-36&lt;/a&gt; view]# &lt;br/&gt;
&lt;br/&gt;
After beam.smp killed, 50+ GB free space back to server.  </comment>
                    <comment id="40915" author="FilipeManana" created="Tue, 9 Oct 2012 19:33:54 -0500"  >Volker,&lt;br/&gt;
&lt;br/&gt;
The spatial views, based on an old couchdb view engine, leak view file descriptors once design documents are updated or deleted. This used to happen with couchdb view engine, but it got fixed in:&lt;br/&gt;
&lt;br/&gt;
&lt;a href=&quot;https://issues.apache.org/jira/browse/COUCHDB-1309&quot;&gt;https://issues.apache.org/jira/browse/COUCHDB-1309&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
The old view engine, also leaked database file descriptors, see &lt;a href=&quot;https://issues.apache.org/jira/browse/COUCHDB-1129&quot;&gt;https://issues.apache.org/jira/browse/COUCHDB-1129&lt;/a&gt;  and &lt;a href=&quot;https://issues.apache.org/jira/browse/COUCHDB-926&quot;&gt;https://issues.apache.org/jira/browse/COUCHDB-926&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
I&amp;#39;ve confirmed now (with testrunner and lsof) that spatial views leak old spatial view files on ddoc update/delete. For the databases, I didn&amp;#39;t verify it.&lt;br/&gt;
Can you verify this?&lt;br/&gt;
&lt;br/&gt;
thanks</comment>
                    <comment id="40929" author="farshid" created="Tue, 9 Oct 2012 22:58:49 -0500"  >fix : &lt;a href=&quot;http://review.couchbase.org/#/c/21468/&quot;&gt;http://review.couchbase.org/#/c/21468/&lt;/a&gt;</comment>
                    <comment id="41000" author="thuan" created="Wed, 10 Oct 2012 21:47:52 -0500"  >Integrated in github-couchdb-preview #513 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-couchdb-preview/513/&quot;&gt;http://qa.hq.northscale.net/job/github-couchdb-preview/513/&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-6860&quot; title=&quot;[system test] Index file descriptor leaks&quot;&gt;&lt;strike&gt;MB-6860&lt;/strike&gt;&lt;/a&gt; Release index file ref counter (Revision 091f7f4f08b6bf22ebb56742c078d71bcfba5b83)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
pwansch : &lt;br/&gt;
Files : &lt;br/&gt;
* src/couch_index_merger/src/couch_view_merger.erl&lt;br/&gt;
</comment>
                    <comment id="41152" author="thuan" created="Thu, 11 Oct 2012 15:09:00 -0500"  >Tested on build 2.0.0-1832.  I could not reproduce this bug.  I think this bug is fixed and will close it.</comment>
                    <comment id="41153" author="thuan" created="Thu, 11 Oct 2012 15:09:14 -0500"  >Tested on build 2.0.0-1832.  I could not reproduce this bug.  I think this bug is fixed and will close it.</comment>
                    <comment id="41276" author="FilipeManana" created="Fri, 12 Oct 2012 10:20:54 -0500"  >Sorry guys, but this was not a full fix.&lt;br/&gt;
&lt;br/&gt;
Read my previous comments. Geocouch also leaks file descriptors, just like old couchdb. And this is serious, as the leaks happens even if users don&amp;#39;t use the geo/spatial features.</comment>
                    <comment id="41334" author="farshid" created="Sat, 13 Oct 2012 21:36:59 -0500"  >&lt;a href=&quot;http://review.membase.org/#/c/21588/&quot;&gt;http://review.membase.org/#/c/21588/&lt;/a&gt;&lt;br/&gt;
</comment>
                    <comment id="41409" author="thuan" created="Mon, 15 Oct 2012 16:47:42 -0500"  >Integrated in github-couchdb-preview #517 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-couchdb-preview/517/&quot;&gt;http://qa.hq.northscale.net/job/github-couchdb-preview/517/&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-6860&quot; title=&quot;[system test] Index file descriptor leaks&quot;&gt;&lt;strike&gt;MB-6860&lt;/strike&gt;&lt;/a&gt;: Only delete .view files (Revision 23cec9997b38ac82cab310b7560d01db529c1ae2)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
peter : &lt;br/&gt;
Files : &lt;br/&gt;
* src/couchdb/couch_view.erl&lt;br/&gt;
</comment>
                    <comment id="41420" author="farshid" created="Mon, 15 Oct 2012 19:53:30 -0500"  >change is merged.</comment>
                    <comment id="41425" author="FilipeManana" created="Mon, 15 Oct 2012 19:59:18 -0500"  >Sorry Farshid. It&amp;#39;s not all, there&amp;#39;s still ongoing work to do on GeoCouch and old couchdb views that&amp;#39;s not even on gerrit yet.&lt;br/&gt;
&lt;br/&gt;
I&amp;#39;ll close this myself (or Volker) when all changes are merged.</comment>
                    <comment id="41482" author="thuan" created="Tue, 16 Oct 2012 08:32:51 -0500"  >Integrated in github-couchdb-preview #518 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-couchdb-preview/518/&quot;&gt;http://qa.hq.northscale.net/job/github-couchdb-preview/518/&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-6860&quot; title=&quot;[system test] Index file descriptor leaks&quot;&gt;&lt;strike&gt;MB-6860&lt;/strike&gt;&lt;/a&gt; Don&amp;#39;t open dev indexes during cleanup (Revision 255e3a6d0289d654d7d0702d8eff294816c5a145)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
Farshid Ghods : &lt;br/&gt;
Files : &lt;br/&gt;
* src/couchdb/couch_view.erl&lt;br/&gt;
* src/couchdb/couch_view_group.erl&lt;br/&gt;
</comment>
                    <comment id="41857" author="peter" created="Thu, 18 Oct 2012 17:53:28 -0500"  >Filipe, please close after the last merge.</comment>
                    <comment id="41895" author="thuan" created="Thu, 18 Oct 2012 23:33:57 -0500"  >Integrated in github-couchdb-preview #520 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-couchdb-preview/520/&quot;&gt;http://qa.hq.northscale.net/job/github-couchdb-preview/520/&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-6860&quot; title=&quot;[system test] Index file descriptor leaks&quot;&gt;&lt;strike&gt;MB-6860&lt;/strike&gt;&lt;/a&gt; Fix old couchdb view cleanup when there are no ddocs (Revision 5353fd9b9078eb4dde81f3ea6d87ce112284df63)&lt;br/&gt;
&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-6860&quot; title=&quot;[system test] Index file descriptor leaks&quot;&gt;&lt;strike&gt;MB-6860&lt;/strike&gt;&lt;/a&gt; Shutdown outdated dev index processes (Revision eaa98475fb43bcc5605c5d66026b932236a7fdfd)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
peter : &lt;br/&gt;
Files : &lt;br/&gt;
* src/couchdb/couch_view.erl&lt;br/&gt;
&lt;br/&gt;
peter : &lt;br/&gt;
Files : &lt;br/&gt;
* src/couchdb/couch_view.erl&lt;br/&gt;
* src/couchdb/couch_db.hrl&lt;br/&gt;
* test/etap/Makefile.am&lt;br/&gt;
* test/etap/202-dev-view-group-shutdown.t&lt;br/&gt;
* src/couchdb/couch_view_group.erl&lt;br/&gt;
</comment>
                    <comment id="41910" author="FilipeManana" created="Fri, 19 Oct 2012 04:32:27 -0500"  >Not yet ready to close. There are still changes from Volker in gerrit for geocouch, and another change for geocouch not yet in gerrit.</comment>
                    <comment id="42265" author="FilipeManana" created="Tue, 23 Oct 2012 09:58:54 -0500"  >All changes merged to master.</comment>
                    <comment id="42282" author="thuan" created="Tue, 23 Oct 2012 13:50:42 -0500"  >Integrated in github-couchdb-preview #522 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-couchdb-preview/522/&quot;&gt;http://qa.hq.northscale.net/job/github-couchdb-preview/522/&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-6860&quot; title=&quot;[system test] Index file descriptor leaks&quot;&gt;&lt;strike&gt;MB-6860&lt;/strike&gt;&lt;/a&gt; Ensure dev index file deleted after db deletion (Revision 0ee52361b16fce383502130f7d56d56e6f427087)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
Farshid Ghods : &lt;br/&gt;
Files : &lt;br/&gt;
* src/couchdb/couch_view_group.erl&lt;br/&gt;
* src/couchdb/couch_view.erl&lt;br/&gt;
* test/etap/202-dev-view-group-shutdown.t&lt;br/&gt;
</comment>
                    <comment id="43713" author="kzeller" created="Fri, 9 Nov 2012 18:36:03 -0600"  >RN: &amp;quot;For past releases, after a data bucket had been deleted, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;any indexes associated with the bucket were not deleted. This &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;has been fixed so the both the data bucket and associated indexes &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;are deleted.&amp;quot;</comment>
                    <comment id="43719" author="FilipeManana" created="Fri, 9 Nov 2012 18:54:23 -0600"  >Note Karen: different kinds of leaks were fixed, but none relates to your observation.&lt;br/&gt;
The leaks were related to not closing index or database file handles after compaction in some scenarios. Other leaks were related to open (and keep them open) unnecessary/unused files.</comment>
                    <comment id="43722" author="kzeller" created="Fri, 9 Nov 2012 19:10:31 -0600"  >So this should really read: &amp;quot;memory leaks had occurred due to open, unused index files. Now, unused index files are now removed and the memory leaks resolved&amp;quot;?</comment>
                    <comment id="43739" author="FilipeManana" created="Sat, 10 Nov 2012 08:39:40 -0600"  >Karen:&lt;br/&gt;
&lt;br/&gt;
It would read more like:&lt;br/&gt;
&lt;br/&gt;
For geo/spatial indexes:&lt;br/&gt;
&lt;br/&gt;
1) After updating a design document, or deleting a design document,&lt;br/&gt;
the old index files and erlang processes were never released (stealing&lt;br/&gt;
disk space and leaking file descriptors);&lt;br/&gt;
2) After database (vbucket) compaction, spatial/geo indexes would&lt;br/&gt;
never release the file handle of the pre-compaction database files&lt;br/&gt;
(meaning that disk space couldn&amp;#39;t be reclaimed by the OS)&lt;br/&gt;
&lt;br/&gt;
For mapreduce views:&lt;br/&gt;
&lt;br/&gt;
1) In some cases, after index compaction, the pre-compaction index&lt;br/&gt;
files were deleted but held open for a long time (or even forever at&lt;br/&gt;
the extreme), preventing the OS from reclaiming the respective disk&lt;br/&gt;
space and leaking 1 file descriptor per index compaction.&lt;br/&gt;
&lt;br/&gt;
Both for geo and mapreduce (minor issue):&lt;br/&gt;
&lt;br/&gt;
1) Avoid creating unnecessary empty index files and keep them open for&lt;br/&gt;
very long periods (until bucket deletion). This is a minor one, as it&lt;br/&gt;
didn&amp;#39;t steal disk space - but it helps decreasing the number of open&lt;br/&gt;
file descriptors, which is important on OSes with a small limit of max&lt;br/&gt;
allowed file descriptors (Windows and Mac OS X).&lt;br/&gt;
&lt;br/&gt;
It&amp;#39;s a lot of stuff, but none relates to index files never being&lt;br/&gt;
deleted after bucket deletion.</comment>
                    <comment id="43825" author="kzeller" created="Mon, 12 Nov 2012 14:56:33 -0600"  >Ok added:       &amp;lt;para&amp;gt;&lt;br/&gt;
For geo/spatial indexes, after updating a design document, or deleting a design document,&lt;br/&gt;
the old index files and erlang processes were not released. This &lt;br/&gt;
unnecessarily took disk space and resulted in leaking file descriptors. &lt;br/&gt;
After database shard compaction, spatial/geo indexes would&lt;br/&gt;
never release the file handle of the pre-compaction database files. &lt;br/&gt;
This meant that disk space couldn&amp;#39;t be reclaimed by the OS. This has &lt;br/&gt;
now been fixed.&lt;br/&gt;
&amp;lt;/para&amp;gt;&lt;br/&gt;
&amp;lt;para&amp;gt;&lt;br/&gt;
For general indexes, after index compaction the pre-compaction index&lt;br/&gt;
files were deleted but were somtimes held open for a long time. &lt;br/&gt;
This prevented the OS from reclaiming the respective disk&lt;br/&gt;
space and leaking one file descriptor per index compaction. &lt;br/&gt;
This has been fixed.&lt;br/&gt;
&amp;lt;/para&amp;gt;&lt;br/&gt;
&amp;lt;para&amp;gt;&lt;br/&gt;
For both geo/spatial and general indexes, &lt;br/&gt;
we now avoid creating unnecessary empty index files and now&lt;br/&gt;
avoid keeping them open for&lt;br/&gt;
very long periods, such as waiting until bucket deletion. &lt;br/&gt;
This is a more minor fix which helps decrease the number of open&lt;br/&gt;
file descriptors, which is important if you &lt;br/&gt;
are wroking on an operating sytem with a small limit of max&lt;br/&gt;
allowed file descriptors, such as Windows and Mac OS X.&lt;br/&gt;
&amp;nbsp;&amp;lt;/para&amp;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, 9 Oct 2012 15:50:11 -0500</customfieldvalue>

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