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

Should hold db opened for compact/recompact switch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      couch_index_compactor doesn't hold the underlying DB shard open (e.g., via couch_db:open/2) during the switch from the compaction phase to the recompaction phase. This opens up a window during which the DB can be LRU-closed between the two, causing the compaction job to fail and all compaction progress to be lost, potentially losing hours' worth of work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iilyak Ilya Khlopotov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: