couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe Manana (Updated) (JIRA)" <>
Subject [jira] [Updated] (COUCHDB-1309) File descriptor leaks on design document update and view cleanup
Date Mon, 14 Nov 2011 12:04:51 GMT


Filipe Manana updated COUCHDB-1309:

    Attachment: master-0002-Shutdown-view-group-on-ddoc-update.patch

Thanks Paul.

Yes, that point was not addressed as I wasn't seeing what your idea was. You were supposed
to explain it, according to the previous comment, but you forgot to do it until now.

About the shutdown after an inactivity period, I considered that some time ago (I think we
even discussed that on irc). However that's a separate issue.

Updated patch master-0002-Shutdown-view-group-on-ddoc-update.patch
> File descriptor leaks on design document update and view cleanup
> ----------------------------------------------------------------
>                 Key: COUCHDB-1309
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: Filipe Manana
>            Assignee: Filipe Manana
>         Attachments: 12x-0001-Add-ddoc_updated-event.patch, 12x-0002-Shutdown-view-group-on-ddoc-update.patch,
couchdb-1309_12x.patch, couchdb-1309_trunk.patch, master-0001-Add-ddoc_updated-event.patch,
master-0002-Shutdown-view-group-on-ddoc-update.patch, master-0002-Shutdown-view-group-on-ddoc-update.patch
> If we add a design document with views defined in it, open the corresponding view group
(by querying one of its views for e.g.), then update the design document in such a way that
the view signature changes (changing a view's map function code for e.g), the old view group
remains open forever (unless a server restart happens) and keeps it's view file reference
counter active forever.
> If a view cleanup request comes, the old view file is not deleted since the reference
counter is not dropped by the old view group, keeping the file descriptor in use forever.
> This leakage is different from what is reported in COUCHDB-1129 but it's somehow related.
> The attached patch, simply shutdowns a view group when the design document is updated
and the new view signature changes, releasing the old view file descriptor (as soon as no
more clients are using the old view).

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message