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

Filipe Manana updated COUCHDB-1384:
-----------------------------------

    Attachment: 0001-Close-view-compaction-file-when-compaction-is-cancel.patch
    
> File descriptor leak if view compaction is cancelled
> ----------------------------------------------------
>
>                 Key: COUCHDB-1384
>                 URL: https://issues.apache.org/jira/browse/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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to