Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 84645 invoked from network); 14 Jun 2010 17:45:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Jun 2010 17:45:43 -0000 Received: (qmail 92448 invoked by uid 500); 14 Jun 2010 17:45:43 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 92377 invoked by uid 500); 14 Jun 2010 17:45:42 -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 92369 invoked by uid 99); 14 Jun 2010 17:45:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jun 2010 17:45:42 +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; Mon, 14 Jun 2010 17:45:40 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5EHjI2c028599 for ; Mon, 14 Jun 2010 17:45:18 GMT Message-ID: <7333353.81841276537518331.JavaMail.jira@thor> Date: Mon, 14 Jun 2010 13:45:18 -0400 (EDT) From: "Robert Newson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-791) Changes not written if server shutdown during delayed_commits period In-Reply-To: <19076530.21681276177333672.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-791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12878657#action_12878657 ] Robert Newson commented on COUCHDB-791: --------------------------------------- The global sync I referred to is the normal POSIX one that flushes all pending data to disk. But, yes, it wouldn't be be able to flush things that haven't been written :) so it's; 1) flip delayed_commits to false 2) call _ensure_full_commit on all active databases. and now I'm back to hating it again. > Changes not written if server shutdown during delayed_commits period > -------------------------------------------------------------------- > > Key: COUCHDB-791 > URL: https://issues.apache.org/jira/browse/COUCHDB-791 > Project: CouchDB > Issue Type: Bug > Affects Versions: 0.11.1 > Environment: Linux (Ubuntu 10.04) > Reporter: Matt Goodall > > If the couchdb server is shutdown (couchdb -d, Ctrl+C at the console, etc) during the delayed commits period then buffered updates are lost. > Simple script to demonstrate the problem is: > db=http://localhost:5984/scratch > curl $db -X DELETE > curl $db -X PUT > curl $db -X POST -d '{}' > /path/to/couchdb/bin/couchdb -d > When couchdb is started again the database is empty. > Affects 0.11.x and trunk branches. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.