Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E48AEE33A for ; Sat, 2 Feb 2013 13:30:22 +0000 (UTC) Received: (qmail 4564 invoked by uid 500); 2 Feb 2013 13:30:22 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 4031 invoked by uid 500); 2 Feb 2013 13:30:15 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 3970 invoked by uid 99); 2 Feb 2013 13:30:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Feb 2013 13:30:13 +0000 Date: Sat, 2 Feb 2013 13:30:13 +0000 (UTC) From: "Dave Cottlehuber (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-1629) CouchDB is not fully cleaning up deleted view folders MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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