Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 83469 invoked from network); 4 Feb 2011 22:53:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2011 22:53:53 -0000 Received: (qmail 12792 invoked by uid 500); 4 Feb 2011 22:53:52 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 12364 invoked by uid 500); 4 Feb 2011 22:53:51 -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 12351 invoked by uid 99); 4 Feb 2011 22:53:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Feb 2011 22:53:51 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=5.0 tests=ALL_TRUSTED,FS_REPLICA,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; Fri, 04 Feb 2011 22:53:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B40D9190CF0 for ; Fri, 4 Feb 2011 22:53:30 +0000 (UTC) Date: Fri, 4 Feb 2011 22:53:30 +0000 (UTC) From: "Randall Leeds (JIRA)" To: dev@couchdb.apache.org Message-ID: <567021513.845.1296860010733.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <26489584.302961294796088048.JavaMail.jira@thor> Subject: [jira] Commented: (COUCHDB-1024) New replicator implementation 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-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990805#comment-12990805 ] Randall Leeds commented on COUCHDB-1024: ---------------------------------------- I think it is incompatible, but not for the reason I said. get_rep_endpoint converts from #httpdb{} to {remote, Url, Headers} or {remote, Url, Headers, OAuthList}. But the latest code you just linked adds default headers: https://github.com/fdmanana/couchdb/blob/trunk_new_replicator/src/couchdb/couch_replicator_utils.erl#L206 which means we get {remote, Url, [{"Accept", "application/json"}, {"User-Agent", "CouchDB/" ++ couch_server:get_version()}]} compare to https://github.com/apache/couchdb/blob/1.0.x/src/couchdb/couch_rep.erl#L524 {remote, Url, []} Also. If we use default headers there that include a different user agent it means we *guarantee* we break checkpoints on every version upgrade. No? > New replicator implementation > ----------------------------- > > Key: COUCHDB-1024 > URL: https://issues.apache.org/jira/browse/COUCHDB-1024 > Project: CouchDB > Issue Type: Improvement > Components: Replication > Reporter: Filipe Manana > Assignee: Filipe Manana > Fix For: 1.2 > > > As recently posted to the development mailing: > http://mail-archives.apache.org/mod_mbox/couchdb-dev/201101.mbox/%3CAANLkTi=NOsVDRUdYHiUGxQCjDXTNGNMOhPm9Bx=rS5ny@mail.gmail.com%3E > ( shortened URL http://s.apache.org/KsY ) > There's a new replicator implementation. I won't explain here all the details since it's already done by that mail sent to the development list. > @Adam, do you think you can give it a review? > The full diff is at: https://github.com/fdmanana/couchdb/compare/trunk_new_replicator > Would be equally happy if others are able and willing to review and test as well. > Also take note that some pull replications of databases with attachments created by prior CouchDB releases (including 1.0.1, but excluding the soon to be released 1.0.2) may hang forever. This is fixed by applying the patch for COUCHDB-1022 to the source server. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira