Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 4999 invoked from network); 28 Nov 2010 12:55:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Nov 2010 12:55:49 -0000 Received: (qmail 63785 invoked by uid 500); 28 Nov 2010 12:55:49 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 63613 invoked by uid 500); 28 Nov 2010 12:55:48 -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 63605 invoked by uid 99); 28 Nov 2010 12:55:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Nov 2010 12:55:48 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Nov 2010 12:55:40 +0000 Received: from dahlia.fritz.box (brln-4d0ce998.pool.mediaWays.net [77.12.233.152]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.traeumt.net (Postfix) with ESMTPSA id BFBDB3C28F for ; Sun, 28 Nov 2010 13:55:18 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: [jira] Updated: (COUCHDB-968) Duplicated IDs in _all_docs From: Jan Lehnardt In-Reply-To: <1200970.2551290897937827.JavaMail.jira@thor> Date: Sun, 28 Nov 2010 13:55:17 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <7CA14791-C5C3-435A-84C5-E7EB28872A09@apache.org> References: <1200970.2551290897937827.JavaMail.jira@thor> To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1082) On 27 Nov 2010, at 23:45, Adam Kocoloski (JIRA) wrote: >=20 > [ = https://issues.apache.org/jira/browse/COUCHDB-968?page=3Dcom.atlassian.jir= a.plugin.system.issuetabpanels:all-tabpanel ] >=20 > Adam Kocoloski updated COUCHDB-968: > ----------------------------------- >=20 > Priority: Blocker (was: Major) Should we hold 1.0.2 for this? Cheers Jan --=20 >=20 > Bob, in tisba's case the duplicates had the same revision. Is that = also true in your case? And you only see these duplicates after = compaction? >=20 >> Duplicated IDs in _all_docs >> --------------------------- >>=20 >> Key: COUCHDB-968 >> URL: https://issues.apache.org/jira/browse/COUCHDB-968 >> Project: CouchDB >> Issue Type: Bug >> Components: Database Core >> Affects Versions: 1.0, 1.0.1, 1.0.2 >> Environment: Ubuntu 10.04. >> Reporter: Sebastian Cohnen >> Priority: Blocker >>=20 >> 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=3Dfalse 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 >> ... >> = {"id":"9997","key":"9997","value":{"rev":"6096-603c68c1fa90ac3f56cf5377133= 7ac9f"}}, >> = {"id":"9999","key":"9999","value":{"rev":"6097-3c873ccf6875ff3c4e2c6fa264c= 6a180"}}, >> = {"id":"9999","key":"9999","value":{"rev":"6097-3c873ccf6875ff3c4e2c6fa264c= 6a180"}}, >> ... >> [*] >> 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). >=20 > --=20 > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. >=20