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

Gracefully update from view_index_dir to index_dir

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None

      Description

      CouchDB 1.3 ships with new couch_index app[1] that uses `index_dir` config option to locate directory to store view indexes. However, it replaces[2] old `view_index_dir`option creating situation when recently updated default.ini will have only `index_dir` option and old, but production used local.ini would still have `view_index_dir`. There is a fallback[3], but there no insurance that it will let user gracefully update.

      This situation may leads to very bad situations, when all indexes will be rebuilded against location that may not expects their on disk size (since `view_index_dir` was pointed to the another mount point) which leads to server fall.

      [1]: https://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=commit;h=35e57870
      [2]: https://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=commit;h=e83352f3
      [3]: https://github.com/apache/couchdb/blob/master/src/couch_index/src/couch_index_util.erl#L22

        Attachments

        1. COUCHDB-1667.1-update_to_index_dir.patch
          2 kB
          Alexander Shorin
        2. COUCHDB-1667.1-revert_to_view_index_dir.patch
          2 kB
          Alexander Shorin

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kxepal Alexander Shorin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: