Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 71745 invoked from network); 5 Aug 2010 09:57:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Aug 2010 09:57:43 -0000 Received: (qmail 33796 invoked by uid 500); 5 Aug 2010 09:57:42 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 33645 invoked by uid 500); 5 Aug 2010 09:57:39 -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 33604 invoked by uid 99); 5 Aug 2010 09:57:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 09:57:38 +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, 05 Aug 2010 09:57:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o759vH87026602 for ; Thu, 5 Aug 2010 09:57:17 GMT Message-ID: <7771396.177681281002237153.JavaMail.jira@thor> Date: Thu, 5 Aug 2010 05:57:17 -0400 (EDT) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-844) Documents missing after CouchDB restart In-Reply-To: <22606105.177591281001036447.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895626#action_12895626 ] Filipe Manana commented on COUCHDB-844: --------------------------------------- Sascha, This is likely because you have delayed commits turned on in your .ini config (they're enabled by default). With delayed commits on, Couch writes the doc to the DB file, then replies to the client with an HTTP 201 code, and then after 1 second it does an fsync. So if the crash/restart happened in less than 1 second after saving the doc... > Documents missing after CouchDB restart > --------------------------------------- > > Key: COUCHDB-844 > URL: https://issues.apache.org/jira/browse/COUCHDB-844 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Affects Versions: 1.0 > Environment: Debian Version 5.0.5, Linux *** 2.6.29-xs5.5.0.17 #1 SMP Mon Aug 3 17:37:37 UTC 2009 i686 GNU/Linux, XenServer Guest > Reporter: Sascha Reuter > Priority: Critical > > After a CouchDB restart, recently added/changed documents+designdocuments (min. 2 weeks timeline!) are missing and cant be accessed trough REST Calls / Futon. > All documents that are still available trought REST/Futon only exist in old revisions. > All documents/revisions can be found doing a manual search (less/egrep/...) in the datafile (/var/lib/couchdb/.couch) > Example: > strings dtap.couch | grep -i "226b2e6c-24b7-4336-92c7-257abf923b11" > $226b2e6c-24b7-4336-92c7-257abf923b11h > $226b2e6c-24b7-4336-92c7-257abf923b11l > $226b2e6c-24b7-4336-92c7-257abf923b11l > $226b2e6c-24b7-4336-92c7-257abf923b11l > $226b2e6c-24b7-4336-92c7-257abf923b11l > $226b2e6c-24b7-4336-92c7-257abf923b11l > $226b2e6c-24b7-4336-92c7-257abf923b11l > $226b2e6c-24b7-4336-92c7-257abf923b11l > $226b2e6c-24b7-4336-92c7-257abf923b11l > $226b2e6c-24b7-4336-92c7-257abf923b11h > $226b2e6c-24b7-4336-92c7-257abf923b11h > curl http://localhost:5984/dtap/226b2e6c-24b7-4336-92c7-257abf923b11 > {"error":"not_found","reason":"missing"} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.