Adam Lofts created COUCHDB-1629:
-----------------------------------
Summary: 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
Reporter: Adam Lofts
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