Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 55007 invoked from network); 8 Jun 2010 15:31:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jun 2010 15:31:14 -0000 Received: (qmail 94622 invoked by uid 500); 8 Jun 2010 15:31:13 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 94544 invoked by uid 500); 8 Jun 2010 15:31:12 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 94535 invoked by uid 99); 8 Jun 2010 15:31:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 15:31:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=AWL,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ejohnson82@gmail.com designates 209.85.211.179 as permitted sender) Received: from [209.85.211.179] (HELO mail-yw0-f179.google.com) (209.85.211.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 15:31:04 +0000 Received: by ywh9 with SMTP id 9so4668644ywh.17 for ; Tue, 08 Jun 2010 08:30:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=EjZgnWGPmHNLgZOB7EDGSLdxexkNmc6JToi7MUiaPr8=; b=SmHXMtEpBf+/GRPdj6NPBrx5VyhAWzH9onvakSktVOVweRgy0K2b+qur0UvN0M+n8j b8TnbrwjzA8IhKOeV7aFQ58vKXmxSg03GUICsDhvzYmXNUeai3ytX6dfzwskcp1410GF 1ogEwXJ20Tr4OISxZYi7AtKAjARVysq0iDv2Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=XpnKFIgHWapQgaoSQE3KGI6CpVhZtIa0K/Cx8QvU+mIz7+SU04r/ZsMBIgG9uXSq3J Vns6sJ+X5+NU6yqV7ZJY0sBVtkAZ9b4SZ1/sS6mbZya8R2jZoPIyWiiMLlecRq2TV1ML Wfq+9Abeuf2ZH0StLCdQkNMDAbDba5kDfvcBA= Received: by 10.90.8.28 with SMTP id 28mr8697715agh.63.1276010700974; Tue, 08 Jun 2010 08:25:00 -0700 (PDT) Received: from erocksbox.local (static-173-210-1-18.ngn.onecommunications.net [173.210.1.18]) by mx.google.com with ESMTPS id f1sm26267522ibg.9.2010.06.08.08.24.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Jun 2010 08:24:59 -0700 (PDT) Message-ID: <4C0E60C9.4010700@gmail.com> Date: Tue, 08 Jun 2010 11:24:57 -0400 From: Erick Johnson User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: _revs_limit and _compact in 0.11 References: <4C099B26.7060106@gmail.com> In-Reply-To: <4C099B26.7060106@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi all, I'm beginning to get familiar with the administrative functions of couchdb 0.11 and had a question about rev limits and compaction. In my testing it seems rev limits are being reset to the default 1000 after I run _compact, even though the wiki states otherwise: "_revs_limit defines a upper bound of document revisions which CouchDB keeps track of, even after Compaction" http://wiki.apache.org/couchdb/HTTP_database_API#Accessing_Database-specific_options For instance if I run the following series of curl commands that create a new db,set the revs limit, get the revs limit, run compact, and get the revs limit again I see that the revs limit gets reset. Searching jira for "_revs_limit" doesn't return any results, so if anyone could shed any light on the subject for me I would greatly appreciate it. Thank you, Erick Johnson curl and server logs follow.... $ curl -XPUT http://erick:foobar@127.0.0.40:5984/testing-compaction {"ok":true} $ curl -XPUT http://erick:foobar@127.0.0.40:5984/testing-compaction/_revs_limit -d "100" {"ok":true} $ curl http://erick:foobar@127.0.0.40:5984/testing-compaction/_revs_limit 100 $ curl -XPOST http://erick:foobar@127.0.0.40:5984/testing-compaction/_compact {"ok":true} $ curl http://erick:foobar@127.0.0.40:5984/testing-compaction/_revs_limit 1000 The associated debug level server logs are as follows: [debug] [<0.207.0>] 'PUT' /testing-compaction {1,1} Headers: [{'Accept',"*/*"}, {'Authorization',"Basic ZXJpY2s6Zm9vYmFy"}, {'Host',"127.0.0.40:5984"}, {'User-Agent',"curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5"}] [debug] [<0.207.0>] OAuth Params: [] [info] [<0.207.0>] 127.0.0.40 - - 'PUT' /testing-compaction 201 [debug] [<0.214.0>] 'PUT' /testing-compaction/_revs_limit {1,1} Headers: [{'Accept',"*/*"}, {'Authorization',"Basic ZXJpY2s6Zm9vYmFy"}, {'Content-Length',"3"}, {'Content-Type',"application/x-www-form-urlencoded"}, {'Host',"127.0.0.40:5984"}, {'User-Agent',"curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5"}] [debug] [<0.214.0>] OAuth Params: [] [info] [<0.214.0>] 127.0.0.40 - - 'PUT' /testing-compaction/_revs_limit 200 [debug] [<0.227.0>] 'GET' /testing-compaction/_revs_limit {1,1} Headers: [{'Accept',"*/*"}, {'Authorization',"Basic ZXJpY2s6Zm9vYmFy"}, {'Host',"127.0.0.40:5984"}, {'User-Agent',"curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5"}] [debug] [<0.227.0>] OAuth Params: [] [info] [<0.227.0>] 127.0.0.40 - - 'GET' /testing-compaction/_revs_limit 200 [debug] [<0.246.0>] 'POST' /testing-compaction/_compact {1,1} Headers: [{'Accept',"*/*"}, {'Authorization',"Basic ZXJpY2s6Zm9vYmFy"}, {'Host',"127.0.0.40:5984"}, {'User-Agent',"curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5"}] [debug] [<0.246.0>] OAuth Params: [] [info] [<0.218.0>] Starting compaction for db "testing-compaction" [info] [<0.246.0>] 127.0.0.40 - - 'POST' /testing-compaction/_compact 202 [debug] [<0.269.0>] Compaction process spawned for db "testing-compaction" [debug] [<0.80.0>] New task status for testing-compaction: Flushing [debug] [<0.218.0>] CouchDB swapping files /home/erick/local/var/lib/couchdb/testing-compaction.couch and /home/erick/local/var/lib/couchdb/testing-compaction.couch.compact. [info] [<0.218.0>] Compaction for db "testing-compaction" completed. [debug] [<0.268.0>] 'GET' /testing-compaction/_revs_limit {1,1} Headers: [{'Accept',"*/*"}, {'Authorization',"Basic ZXJpY2s6Zm9vYmFy"}, {'Host',"127.0.0.40:5984"}, {'User-Agent',"curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5"}] [debug] [<0.268.0>] OAuth Params: [] [info] [<0.268.0>] 127.0.0.40 - - 'GET' /testing-compaction/_revs_limit 200