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

Should hold db opened for compact/recompact switch

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: