Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C8796371 for ; Mon, 16 May 2011 20:13:28 +0000 (UTC) Received: (qmail 52281 invoked by uid 500); 16 May 2011 20:13:28 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 52248 invoked by uid 500); 16 May 2011 20:13:28 -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 52239 invoked by uid 99); 16 May 2011 20:13:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 20:13:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 20:13:26 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 797A0CC8C4 for ; Mon, 16 May 2011 20:12:47 +0000 (UTC) Date: Mon, 16 May 2011 20:12:47 +0000 (UTC) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Message-ID: <117323907.16520.1305576767494.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <327126784.7022.1305214727417.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1163) Document returned by id, but cannot be found by rev 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-1163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034271#comment-13034271 ] Paul Joseph Davis commented on COUCHDB-1163: -------------------------------------------- Me and Adam are poking through the code and noticed something unusual. Can you change the return value at [1] to be something like {not_found, rev_missing} or similar to see if that's the piece of code indicating that the revision is missing? If that shows up, then could you log the input and output of the two calls at [2] and [3] to check that the behavior is the same in both places (we treat the return value slightly differently). [1] https://github.com/apache/couchdb/blob/1.0.x/src/couchdb/couch_db.erl#L1056 [2] https://github.com/apache/couchdb/blob/1.0.x/src/couchdb/couch_db.erl#L1048 [3] https://github.com/apache/couchdb/blob/1.0.x/src/couchdb/couch_db.erl#L1085 > Document returned by id, but cannot be found by rev > --------------------------------------------------- > > Key: COUCHDB-1163 > URL: https://issues.apache.org/jira/browse/COUCHDB-1163 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Affects Versions: 1.0.1, 1.0.2 > Reporter: James Howe > Priority: Critical > > Somehow, our cluster has developed the following problem on a handful of documents. Will post reproduction steps if we find them. All properties have been redacted. All the documents this affects also have attachments, if that is significant. Once a document is in this situation, it causes conflict detection, replication and include_docs to behave incorrectly or outright fail. > GET /database/4cdee83a118ea1cf3050b1d006144d46 returns > { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "10-df4bf65a6104ea240f100c30d3cb245d", > "foo": "bar" > } > GET /database/4cdee83a118ea1cf3050b1d006144d46?open_revs=all returns > [ > { > "ok": { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "10-df4bf65a6104ea240f100c30d3cb245d", > "foo": "bar" > } > }, > { > "ok": { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "8-eea5e36daee12acd79a127abf36f7720", > _deleted: true > } > }, > { > "ok": { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "9-2cead1e4c813a4f0d10a9bc4aa28bfda", > _deleted: true > } > }, > { > "ok": { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "7-c3b44f004660caa496804409089b53d9", > _deleted: true > } > }, > { > "ok": { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "6-52e978041bb324d19e01a2ac5a243702", > _deleted: true > } > }, > { > "ok": { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "5-761bf28c6989f0fde41bdd5732c33159", > _deleted: true > } > }, > { > "ok": { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "4-abb005cf4b2d2dd12880a33af1e7066e", > _deleted: true > } > }, > { > "ok": { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "3-233e4624e620ec1c8b66f21a051832f8", > _deleted: true > } > }, > { > "ok": { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "10-55f0cdf9dd95ed230b733a2c826c842c", > _deleted: true > } > }, > { > "ok": { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "11-264c9d6c249ba2fc9b13df35cb447fd7", > _deleted: true > } > }, > { > "ok": { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "9-2cead1e4c813a4f0d10a9bc4aa28bfda", > _deleted: true > } > }, > { > "ok": { > "_id": "4cdee83a118ea1cf3050b1d006144d46", > "_rev": "2-9f2df19059d9a460a12740a63a4d95e9", > _deleted: true > } > } > ] > GET /database/4cdee83a118ea1cf3050b1d006144d46?rev=10-df4bf65a6104ea240f100c30d3cb245d returns > { > "error": "not_found", > "reason": "missing" > } -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira