Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 97496 invoked from network); 1 Jun 2009 20:01:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jun 2009 20:01:26 -0000 Received: (qmail 79843 invoked by uid 500); 1 Jun 2009 20:01:38 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 79755 invoked by uid 500); 1 Jun 2009 20:01:37 -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 79745 invoked by uid 99); 1 Jun 2009 20:01:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2009 20:01:37 +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; Mon, 01 Jun 2009 20:01:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 94CBE234C004 for ; Mon, 1 Jun 2009 13:01:07 -0700 (PDT) Message-ID: <2067676036.1243886467598.JavaMail.jira@brutus> Date: Mon, 1 Jun 2009 13:01:07 -0700 (PDT) From: "Damien Katz (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-204) CouchDB stops/crashes/hangs (?) after resume from Mac OS X system hibernation and/or stand-by ("sleep") In-Reply-To: <996845101.1231594319554.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-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715223#action_12715223 ] Damien Katz commented on COUCHDB-204: ------------------------------------- It looks like all we need is a special flag passed to the emulator http://www.erlang.org/doc/man/erl.html: +c Disable compensation for sudden changes of system time. Normally, erlang:now/0 will not immediately reflect sudden changes in the system time, in order to keep timers (including receive-after) working. Instead, the time maintained by erlang:now/0 is slowly adjusted towards the new system time. (Slowly means in one percent adjustments; if the time is off by one minute, the time will be adjusted in 100 minutes.) When the +c option is given, this slow adjustment will not take place. Instead erlang:now/0 will always reflect the current system time. Note that timers are based on erlang:now/0. If the system time jumps, timers then time out at the wrong time. > CouchDB stops/crashes/hangs (?) after resume from Mac OS X system hibernation and/or stand-by ("sleep") > ------------------------------------------------------------------------------------------------------- > > Key: COUCHDB-204 > URL: https://issues.apache.org/jira/browse/COUCHDB-204 > Project: CouchDB > Issue Type: Bug > Components: Administration Console, Database Core, HTTP Interface, Infrastructure > Affects Versions: 0.8.1 > Environment: Mac OS X 10.5.6 "Leopard" > Reporter: Philipp Schumann > Priority: Critical > > I'm running CouchDB 0.8.1 on Mac OS X 10.5.6 "Leopard" and after resuming from system hibernation ("safe sleep" -- by closing and reopening the laptop lid in my case, which is the factory default), the process either refuses all incoming connections, including my own Python scripts, web browser and the Futon, or has stopped running altogether. That is, I don't know which exactly is the case here but the fact is that CouchDB cannot be connected to after resuming. > This issue always appears with "smart sleep / safe sleep" (standby plus hibernation) but only sometimes appears using "fast sleep" (hibernation turned off, standby only). > This isn't a "critical" issue for server deployments, of course, but one of the core ideas of CouchDB is that eventually it will be deployed even to desktop clients for app & data replication across machines, so in this context this *is* a critical issue since you can't ask "ordinary" Mac OS X users to change their sleep settings from "safe" to "fast" using uncomprehensable terminal commands. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.