Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16DBCE4D8 for ; Tue, 5 Feb 2013 17:48:13 +0000 (UTC) Received: (qmail 94664 invoked by uid 500); 5 Feb 2013 17:48:12 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 94626 invoked by uid 500); 5 Feb 2013 17:48:12 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 94613 invoked by uid 99); 5 Feb 2013 17:48:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 17:48:12 +0000 Date: Tue, 5 Feb 2013 17:48:12 +0000 (UTC) From: "Benoit Chesneau (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-1667) Gracefully update from view_index_dir to index_dir MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571503#comment-13571503 ] Benoit Chesneau commented on COUCHDB-1667: ------------------------------------------ I think the idea was to fix a common base index dir for all indexers. So index_dir would be better for the future imo. I would prefer a change that put index_dir as default but if view_index_dir is set (ie in local.ini for old versions) choose that one. Would it it be OK for you? Whatever the choice we do maybe we could print a warning in case both are present? And highlight the one that should be used? > Gracefully update from view_index_dir to index_dir > -------------------------------------------------- > > Key: COUCHDB-1667 > URL: https://issues.apache.org/jira/browse/COUCHDB-1667 > Project: CouchDB > Issue Type: Bug > Affects Versions: 1.3 > Reporter: Alexander Shorin > Priority: Blocker > Attachments: COUCHDB-1667.1-revert_to_view_index_dir.patch, COUCHDB-1667.1-update_to_index_dir.patch > > > 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 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira