Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 96573 invoked from network); 30 Jun 2009 17:09:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jun 2009 17:09:01 -0000 Received: (qmail 4584 invoked by uid 500); 30 Jun 2009 17:09:11 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 4524 invoked by uid 500); 30 Jun 2009 17:09:11 -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 4514 invoked by uid 99); 30 Jun 2009 17:09:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 17:09:11 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 17:09:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 60AAE234C1F1 for ; Tue, 30 Jun 2009 10:08:47 -0700 (PDT) Message-ID: <1910090626.1246381727395.JavaMail.jira@brutus> Date: Tue, 30 Jun 2009 10:08:47 -0700 (PDT) From: "Adam Kocoloski (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-397) POST _restart only restarts couch_server process In-Reply-To: <1962165703.1246290407512.JavaMail.jira@brutus> 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-397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12725704#action_12725704 ] Adam Kocoloski commented on COUCHDB-397: ---------------------------------------- Hi Paul, I tried terminating all secondary services, but it ended up getting a bit complicated. couch_httpd is one of those services, so we end up shutting down the connection that accepted the request. I tried to work around this by spawning a fun to trigger the restart. This allowed me to respond to the request to _restart, but the test suite still ran into problems because modern browsers will make multiple connections to the CouchDB server in order to run the tests. I think we can develop a graceful shutdown procedure that closes all connections appropriately and and restarts things, but in the interests of getting 0.9.1 out the door I just changed restart_core_server() to explicitly restart the stats processes. > POST _restart only restarts couch_server process > ------------------------------------------------ > > Key: COUCHDB-397 > URL: https://issues.apache.org/jira/browse/COUCHDB-397 > Project: CouchDB > Issue Type: Bug > Affects Versions: 0.9 > Reporter: Adam Kocoloski > Assignee: Adam Kocoloski > > Perhaps this is by design, but POSTing to /_restart only restarts the couch_server process. It does not restart any of the other myriad processes CouchDB relies on for operation. In particular, this causes the stats test suite to occasionally fail, because the stats counters do not get reset. The test that fails is > Assertion 'open_databases > 0 && max >= open_databases, name' failed: should keep the same number of open databases when reaching the max_dbs_open limit -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.