Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 67200 invoked from network); 13 Jan 2011 22:13:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2011 22:13:11 -0000 Received: (qmail 92999 invoked by uid 500); 13 Jan 2011 22:13:10 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 92866 invoked by uid 500); 13 Jan 2011 22:13:10 -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 92739 invoked by uid 99); 13 Jan 2011 22:13:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jan 2011 22:13:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jan 2011 22:13:07 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0DMCjUL002157 for ; Thu, 13 Jan 2011 22:12:46 GMT Message-ID: <2758433.355651294956765881.JavaMail.jira@thor> Date: Thu, 13 Jan 2011 17:12:45 -0500 (EST) From: "Adam Kocoloski (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-1010) improve supervision tree and config changes reload In-Reply-To: <19414582.108571294064565779.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981511#action_12981511 ] Adam Kocoloski commented on COUCHDB-1010: ----------------------------------------- Sorry for the delay. I've finished reviewing the 0001 patch. Aside from the little whitespace error introduced in couch_db_update_notifier_sup, my only complaint is about the couch_server_sup handler. Calling exit(whereis(couch_server_sup), shutdown) does nothing at all when the server is started by the application master (which is what happens when CouchDB is started using the shell script). Curiously, it does shut down the server when called from the etap tests, which have a lower-level way of starting couch. I propose we fix couch_server_sup:stop() separately because it may entail a major reworking of the etap tests. Here's an alternative patch. I think it's a bit more fine-grained, too, in that it only restarts couch_secondary_services, not the whole tree, when the "daemons" block changes. https://github.com/kocolosk/couchdb/commit/1778db > improve supervision tree and config changes reload > -------------------------------------------------- > > Key: COUCHDB-1010 > URL: https://issues.apache.org/jira/browse/COUCHDB-1010 > Project: CouchDB > Issue Type: Improvement > Components: Database Core > Affects Versions: 1.2 > Reporter: Benoit Chesneau > Assignee: Benoit Chesneau > Fix For: 1.2 > > Attachments: 0001-export-functions-to-couch_config.patch, 0002-another-port-from-bigcouch.-i.patch, 0002-another-port-from-bigcouch.-i.patch, 0002-another-port-from-bigcouch.-i.patch, 0003-do-like-in-other-module.-s-couch_os_daemons-MODULE.patch, COUCHDB-1010.patch > > > port from bigcouch which is under apache license 2. > - improve supervision > - clean config changes handling. > This has been tested in an undisclosed yet project named refuge wich is also based on couchdb but is more OTP and rebar friendly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.