You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Dave Cottlehuber (JIRA)" <ji...@apache.org> on 2013/02/02 14:30:13 UTC

[jira] [Commented] (COUCHDB-1629) CouchDB is not fully cleaning up deleted view folders

    [ https://issues.apache.org/jira/browse/COUCHDB-1629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569543#comment-13569543 ] 

Dave Cottlehuber commented on COUCHDB-1629:
-------------------------------------------

+1, fixed even on the platform that dares not speak its name.
                
> CouchDB is not fully cleaning up deleted view folders
> -----------------------------------------------------
>
>                 Key: COUCHDB-1629
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1629
>             Project: CouchDB
>          Issue Type: Bug
>          Components: View Server Support
>    Affects Versions: 1.3
>            Reporter: Adam Lofts
>            Priority: Blocker
>             Fix For: 1.3
>
>         Attachments: 0001-Ensure-nuke_dir-removes-folders.patch
>
>
> To reproduce:
> 1. Build a new couchdb with an empty lib folder
> 2. Run the following to create an index an delete the db:
> # Create a db and a view
> curl -X PUT localhost:5984/will_delete
> curl -X PUT localhost:5984/will_delete/_design/view -d "{ \"views\": { \"s\": { \"map\": \"function(doc) { emit(1); }\" }}}"
> curl -X PUT localhost:5984/will_delete/doc1 -d "{ }"
> curl localhost:5984/will_delete/_design/view/_view/s
> # Delete the db
> curl -X DELETE localhost:5984/will_delete
> 3. (BUG1) The view folder has been moved to lib/.delete but is still there.
> 4. Restart couchdb. This should also clean up the .delete folder (inside couch_file:init_delete_dir).
> 5. (BUG2) The view folder is still there

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira