From dev-return-4026-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Mon Apr 27 19:08:55 2009 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 18580 invoked from network); 27 Apr 2009 19:08:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Apr 2009 19:08:55 -0000 Received: (qmail 861 invoked by uid 500); 27 Apr 2009 19:08:54 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 811 invoked by uid 500); 27 Apr 2009 19:08:54 -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 801 invoked by uid 99); 27 Apr 2009 19:08:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2009 19:08:54 +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, 27 Apr 2009 19:08:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AC349234C003 for ; Mon, 27 Apr 2009 12:08:30 -0700 (PDT) Message-ID: <1062646780.1240859310691.JavaMail.jira@brutus> Date: Mon, 27 Apr 2009 12:08:30 -0700 (PDT) From: "Damien Katz (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-334) With deferred commits and 100+ active dbs, CouchDB can lose uncommitted changes 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 With deferred commits and 100+ active dbs, CouchDB can lose uncommitted changes ------------------------------------------------------------------------------- Key: COUCHDB-334 URL: https://issues.apache.org/jira/browse/COUCHDB-334 Project: CouchDB Issue Type: Bug Components: Database Core Affects Versions: 0.9 Reporter: Damien Katz Assignee: Damien Katz Fix For: 0.9.1 By default, CouchDB keeps a maximum of 100 databases open and active. This is controlled by the ini setting max_dbs_open in [couchdb] . This limit controls the number of Erlang server processes that are readily available and hold resources, like file handles, and hold state for deferred commits. Once CouchDB hits the open database limit, it will always close an idle database and files before opening a new database file. The problem is that CouchDB would consider instances to be idle even if they still had deferred commits pending. It would then close the instance and drop it's deferred commits. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.