You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Damien Katz (JIRA)" <ji...@apache.org> on 2008/12/23 00:29:44 UTC

[jira] Closed: (COUCHDB-180) Too many view files may be held open, rendering CouchDB unusable

     [ https://issues.apache.org/jira/browse/COUCHDB-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Damien Katz closed COUCHDB-180.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9

> Too many view files may be held open, rendering CouchDB unusable
> ----------------------------------------------------------------
>
>                 Key: COUCHDB-180
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-180
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 0.9
>         Environment: OS X 10.5.5
>            Reporter: Paul Carey
>             Fix For: 0.9
>
>         Attachments: COUCHDB-180.patch, test_for_open_files.js
>
>
> On trunk (rev 728285), CouchDB will hold onto view files for a certain request pattern. 
> Once a threshold of open files has been exceeded, all requests to CouchDB will result in {error,emfile}.
> The attached test case runs through the following sequence n times.
> delete db
> create db
> create doc
> query non existant view
> create view
> query view
> On my machine a value of about 250 for n is enough for the threshold to be exceeded. Regardless, running lsof clearly shows CouchDB holding multiple refs to the same view file.
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.