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

Zero byte .compact file prevents compaction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11
    • 1.2
    • Database Core
    • None
    • Regular Contributors Level (Easy to Medium)

    Description

      Couchdb can make a .compact file when the volume is almost out of disk
      space and then crash before writing the header.

      If you then clean some space and try to compact again, it won't ever work.

      [Wed, 23 Jun 2010 16:11:59 GMT] [error] [emulator] Error in process
      <0.1976.0> with exit value:
      {{badmatch,no_valid_header},[

      {couch_db_updater,start_copy_compact,1}

      ]}

      The presence of the invalid .compact file prevents it, and needs to be
      manually removed.

      Remedy: delete the .compact file if there is no valid header when _compact is called for the second time.

      Attachments

        Activity

          People

            kocolosk Adam Kocoloski
            rnewson Robert Newson
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: