From dev-return-10511-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Sat Jul 03 03:53:18 2010 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 54938 invoked from network); 3 Jul 2010 03:53:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Jul 2010 03:53:18 -0000 Received: (qmail 92387 invoked by uid 500); 3 Jul 2010 03:53:17 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 92123 invoked by uid 500); 3 Jul 2010 03:53:15 -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 92115 invoked by uid 99); 3 Jul 2010 03:53:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jul 2010 03:53:14 +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; Sat, 03 Jul 2010 03:53:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o633qomB016509 for ; Sat, 3 Jul 2010 03:52:50 GMT Message-ID: <15954775.187391278129170226.JavaMail.jira@thor> Date: Fri, 2 Jul 2010 23:52:50 -0400 (EDT) From: "Chris Anderson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Closed: (COUCHDB-647) Zero size DB files are created, which make CouchDB crash. In-Reply-To: <1358048170.154951265740288994.JavaMail.jira@brutus.apache.org> 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-647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Anderson closed COUCHDB-647. ---------------------------------- Resolution: Fixed this was fixed in r959791 thanks! > Zero size DB files are created, which make CouchDB crash. > --------------------------------------------------------- > > Key: COUCHDB-647 > URL: https://issues.apache.org/jira/browse/COUCHDB-647 > Project: CouchDB > Issue Type: Bug > Affects Versions: 0.9.1, 0.10 > Environment: Ubuntu Hardy > Reporter: eric casteleijn > Priority: Critical > Attachments: couch_file_logging.patch > > > Our production server crashed with the following fragment in the error log http://friendpaste.com/3VfsxGrH2XxvkqE3XQA4oy > It appears that this is due to a corrupted or zero size database file. > Chris Anderson suggested the attached patch to improve the logging in this case. > doppler came up with a script that reproduces the crash: > touch /Applications/CouchDBX-0.10.1-R13B03-Leopard.app/Contents/Resources/couchdbx-core/couchdb/var/lib/couchdb/test.couch > while true ; do curl -X GET http://localhost:5984/test ; done > NOTE: On the server that crashed we do not manipulate database files in any other way than calling the REST interface, so it is still a mystery how zero sized dbs get created. I will investigate by digging through the logs. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.