[
https://issues.apache.org/jira/browse/COUCHDB-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Carey updated COUCHDB-180:
-------------------------------
Attachment: test_for_open_files.js
> 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
> Attachments: 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.