couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe Manana (Created) (JIRA)" <>
Subject [jira] [Created] (COUCHDB-1384) File descriptor leak if view compaction is cancelled
Date Thu, 19 Jan 2012 13:03:39 GMT
File descriptor leak if view compaction is cancelled

                 Key: COUCHDB-1384
             Project: CouchDB
          Issue Type: Bug
    Affects Versions: 1.2
            Reporter: Filipe Manana
            Priority: Critical
             Fix For: 1.2
         Attachments: 0001-Close-view-compaction-file-when-compaction-is-cancel.patch

If a view compaction is canceled, the compact file's fd remains open as long as the view group
is alive.
This is because the couch_file the compactor uses is spawn_linked by the view group and not
linked to the compactor process, therefore when the compactor is shutdown the corresponding
couch_file is not shutdown. The view group doesn't keep track of the compact file's couch_file,
so it can't explicitly shutdown it either.

This affects only the 1.2.x branch and is addressed by simply linking the file process to
the compactor process. Patch attached.

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