Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-334

With deferred commits and 100+ active dbs, CouchDB can lose uncommitted changes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9.1
    • Component/s: Database Core
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              damienkatz Damien Katz
              Reporter:
              damienkatz Damien Katz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: