couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randall Leeds (JIRA)" <>
Subject [jira] [Updated] (COUCHDB-1137) add delete options for controlling file deletion
Date Sat, 23 Apr 2011 00:58:05 GMT


Randall Leeds updated COUCHDB-1137:

    Attachment: respect_del_opts_on_db_init.patch

One clause of couch_db_updater:init/1 was calling file:delete directly to remove old .compact
files. I didn't see any reason for this so I unified the code and it will now respect the
delete options patch here as a result.

> add delete options for controlling file deletion
> ------------------------------------------------
>                 Key: COUCHDB-1137
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core
>    Affects Versions: 1.0.2
>            Reporter: Randall Leeds
>            Priority: Minor
>         Attachments: delete_options.patch, respect_del_opts_on_db_init.patch
> Even after switching to an extents-based filesystem I've noticed that deleting files
after compaction can sometimes be terribly painful and slow. Additionally, deleting large
pre-compact database and view files places extra load on the server that may be best kept
to off hours. These sorts of large databases might be impossible to run a complete compact
cycle on in short time. I'm suggesting we add an option to allow couch to leave files to be
deleted in the .delete directories so administrators can delete them at their leisure (presumably
at off hours or with a tool like ionice).

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message