Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.2
-
None
-
None
Description
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.