Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1629

CouchDB is not fully cleaning up deleted view folders

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.3
    • 1.3
    • View Server Support
    • None

    Description

      To reproduce:

      1. Build a new couchdb with an empty lib folder
      2. Run the following to create an index an delete the db:

      1. 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\":
        Unknown macro: { "map"}

        }}"
        curl -X PUT localhost:5984/will_delete/doc1 -d "{ }"
        curl localhost:5984/will_delete/_design/view/_view/s

      1. 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            adamlofts Adam Lofts
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: