• Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.10.1, 0.10.2, 0.11.1, 0.11.2, 1.0, 1.0.1, 1.0.2
    • Fix Version/s: 1.0.2, 1.0.3, 1.1
    • Component/s: Database Core
    • Labels:
    • Environment:


    • Skill Level:
      Committers Level (Medium to Hard)


      We have a database, which is causing serious trouble with compaction and replication (huge memory and cpu usage, often causing couchdb to crash b/c all system memory is exhausted). Yesterday we discovered that db/_all_docs is reporting duplicated IDs (see [1]). Until a few minutes ago we thought that there are only few duplicates but today I took a closer look and I found 10 IDs which sum up to a total of 922 duplicates. Some of them have only 1 duplicate, others have hundreds.

      Some facts about the database in question:

      • ~13k documents, with 3-5k revs each
      • all duplicated documents are in conflict (with 1 up to 14 conflicts)
      • compaction is run on a daily bases
      • several thousands updates per hour
      • multi-master setup with pull replication from each other
      • delayed_commits=false on all nodes
      • used couchdb versions 1.0.0 and 1.0.x

      Unfortunately the database's contents are confidential and I'm not allowed to publish it.

      [1]: Part of http://localhost:5984/DBNAME/_all_docs

      There were two (old) servers (1.0.0) in production (already having the replication and compaction issues). Then two servers (1.0.x) were added and replication was set up to bring them in sync with the old production servers since the two new servers were meant to replace the old ones (to update node.js application code among other things).

        Issue Links



            • Assignee:
              Adam Kocoloski
              Sebastian Cohnen
            • Votes:
              0 Vote for this issue
              3 Start watching this issue


              • Created: