CouchDB
  1. CouchDB
  2. COUCHDB-808

Zero byte .compact file prevents compaction

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.11
    • Fix Version/s: 1.2
    • Component/s: Database Core
    • Labels:
      None
    • Skill Level:
      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.

        Activity

        Robert Newson created issue -
        Paul Joseph Davis made changes -
        Field Original Value New Value
        Skill Level Regular Contributors Level (Easy to Medium)
        Hide
        Adam Kocoloski added a comment -

        This was fixed in the course of working on COUCHDB-968:

        https://github.com/apache/couchdb/commit/4137a8eb9b2b

        I'd like to select 1.2.0 as the fix version but JIRA won't let me. Github says that's the first tag including the above commit.

        Show
        Adam Kocoloski added a comment - This was fixed in the course of working on COUCHDB-968 : https://github.com/apache/couchdb/commit/4137a8eb9b2b I'd like to select 1.2.0 as the fix version but JIRA won't let me. Github says that's the first tag including the above commit.
        Adam Kocoloski made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Adam Kocoloski [ kocolosk ]
        Resolution Fixed [ 1 ]
        Jan Lehnardt made changes -
        Fix Version/s 1.2 [ 12315198 ]
        Hide
        Jan Lehnardt added a comment -

        updated fixfor to 1.2 by unarchving the version in the project admin JIRA settings.

        Show
        Jan Lehnardt added a comment - updated fixfor to 1.2 by unarchving the version in the project admin JIRA settings.
        Hide
        Adam Kocoloski added a comment -

        Thanks Jan, I should have thought of that.

        Show
        Adam Kocoloski added a comment - Thanks Jan, I should have thought of that.

          People

          • Assignee:
            Adam Kocoloski
            Reporter:
            Robert Newson
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development