Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 7802 invoked from network); 11 Mar 2009 22:53:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2009 22:53:09 -0000 Received: (qmail 40740 invoked by uid 500); 11 Mar 2009 22:53:07 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 40699 invoked by uid 500); 11 Mar 2009 22:53:06 -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 40688 invoked by uid 99); 11 Mar 2009 22:53:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 15:53:06 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.68.5.17] (HELO relay03.pair.com) (209.68.5.17) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 11 Mar 2009 22:52:57 +0000 Received: (qmail 87011 invoked from network); 11 Mar 2009 22:52:35 -0000 Received: from 96.33.90.152 (HELO ?192.168.1.195?) (96.33.90.152) by relay03.pair.com with SMTP; 11 Mar 2009 22:52:35 -0000 X-pair-Authenticated: 96.33.90.152 Message-Id: From: Damien Katz To: dev@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: rep_security merge to trunk Date: Wed, 11 Mar 2009 18:52:34 -0400 References: <2389ED95-C566-494A-9869-EEA42C382A2F@apache.org> <653CC6D9-BBAD-49E1-ADAF-E31C8F534D1A@apache.org> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org Heh. Hit send too soon. Anyway, I think you get the idea. -Damien On Mar 11, 2009, at 6:46 PM, Damien Katz wrote: > I've added all_or_nothing transactions. It has the behavior that if > a document doesn't pass validation or there is a crash during > update, then no docs are saved. However there is no conflict > checking, so some of thconflicts.. > > Adding all_or_nothing option to bulk docs. If a doc doesn't pass > validation or there is failure during update, then no docs are > saved. However, there is no conflict checking, if all docs validate > but some or all doc updates are conflicts, they are saved as > conflicts (maybe as winner or as loser) in a single transaction > regardless, all docs are saved and no errors returned the client. > > Now we just need merge to trunk. > > -Damien > > > On Mar 11, 2009, at 11:31 AM, Damien Katz wrote: > >> I'm going to look into adding a "force conflicts" option today. >> >> -Damien >> >> >> On Mar 10, 2009, at 7:01 PM, Jan Lehnardt wrote: >> >>> >>> On 10 Mar 2009, at 23:44, Damien Katz wrote: >>> >>>> I think the rep_security branch is looking pretty solid. I still >>>> have work to do to merge with Adam's recent replicator changes. >>>> >>>> This patch breaks the file format and replication API, so >>>> replication with earlier versions is not possible. And the "all >>>> or nothing w/ conflict checking" transactions are gone. Which I >>>> think is good, because people were relying on it without >>>> understanding the rest of CouchDB doesn't support that feature. >>>> >>>> I'd like to go ahead and merge this to trunk. Comments, >>>> suggestions and objections please. >>> >>> I have an app that could benefit of the other variant of bulk >>> transactions that you offered in the initial proposal, namely >>> having all writes go through, regardless if they create conflicts >>> or not. Replication already offers this and a bulk request with >>> the `new_edits:false` flag set will give me that behaviour, but >>> not for documents that don't have a `_rev` member. CouchDB crashes >>> when I send it. I believe the patch to be not too hard (adding new >>> `_rev`s where they are missing) or I missing anything? I'm happy >>> to come up with a patch, if there are no objections. I also don't >>> think this would block merging the branch to trunk. >>> >>> Cheers >>> Jan >>> -- >>> >> >