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 0E275D1C7 for ; Thu, 8 Nov 2012 16:45:21 +0000 (UTC) Received: (qmail 22685 invoked by uid 500); 8 Nov 2012 16:45:20 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 22627 invoked by uid 500); 8 Nov 2012 16:45:20 -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 22542 invoked by uid 99); 8 Nov 2012 16:45:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2012 16:45:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.223.180 as permitted sender) Received: from [209.85.223.180] (HELO mail-ie0-f180.google.com) (209.85.223.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2012 16:45:10 +0000 Received: by mail-ie0-f180.google.com with SMTP id e10so4286701iej.11 for ; Thu, 08 Nov 2012 08:44:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=EESrTCIIYZG3Wr8G9dLPlM8q8NBsDsV4fEFzy4/f3w8=; b=CJ1+NRt/h3Ae8qBPMwK7AzMyPpL/s7QVzhmMHffgO6dFwQQkUcdbJ5GLwrRgrPpJoy NAC5aVtucbss3RsLITNqZIYOgjyftS/t2z360e0+sdGyv0BOwneDr2WW/+EGNsvXuVRQ F0H32apylXsxbgft2e7GwxilbGtxnkBO3/SmT0tiaXKNguXSEoHmRzL98rylZJnhXi2R 3byMnjT8qYS3+80fNGpZ6ahO1mQpf2qkcO+L4LuukR9HKiZfyPjJoaMB8MZtCm+SYxMi 2vVhj5walRqr0BKdtSH1IhOCyG5+vFMohqi0SUt4Ytoy4d0yZXmYosBorK1OOXeArCH6 BrSQ== MIME-Version: 1.0 Received: by 10.50.33.174 with SMTP id s14mr8753872igi.11.1352393089206; Thu, 08 Nov 2012 08:44:49 -0800 (PST) Received: by 10.64.77.196 with HTTP; Thu, 8 Nov 2012 08:44:49 -0800 (PST) In-Reply-To: References: <1220942000.7101.1314138329138.JavaMail.tomcat@hel.zones.apache.org> <1204283570.67667.1352093474335.JavaMail.jiratomcat@arcas> Date: Thu, 8 Nov 2012 17:44:49 +0100 Message-ID: Subject: Re: [jira] [Commented] (COUCHDB-1259) Replication ID is not stable if local server has a dynamic port number From: Benoit Chesneau To: "dev@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org it is working again . Someone fixed the jira conf. On Tue, Nov 6, 2012 at 4:40 PM, Jan Lehnardt wrote: > > On Nov 5, 2012, at 08:54 , Benoit Chesneau wrote: > >> btw sound like jira isn't handling mails now so we should continue >> this discussion on the ticket. > > It never has, to my knowledge. > > IIRC it works with GitHub Issues/Pull Requests, but not here. Would be > a great feature though. > > Cheers > Jan > -- > >> >> On Mon, Nov 5, 2012 at 8:53 AM, Benoit Chesneau wr= ote: >>> On Mon, Nov 5, 2012 at 7:48 AM, Dustin Sallings wrote: >>>> Benoit Chesneau >>>> writes: >>>> >>>>>> 1. My home couchdb server (by hostname, only available from inside m= y >>>>>> house) >>>>>> 2. My work couchdb server (by hostname, available inside and outside= , >>>>>> but the IP addresses are different in each location). >>>>>> 3. Iriscouch (by hostname, available everywhere on the same address) >>>>>> >>>>>> In all three cases, it can stop replication, but will resume again i= f >>>>>> I restart. >>>>>> >>>>> Most of these cases already work if you are using the new _replicator= api. >>>> >>>> If you're referring to the replicator DB, then yes, that's the way >>>> I set up all my replications, and why it starts back up when I restart= . >>>> >>>>>> Under what circumstances do you consider "stop replicating after >>>>>> sleep, but start again if the user restarts CouchDB" good behavior? >>>>> >>>>> - local replications should always restart. >>>>> - replication with remote should restart only if the remote didn't >>>>> change and my network didn't change. >>>>> >>>>> In other cases I need to rely on a mecanism to validate that I can >>>>> continue the replication. In that case I agree it can be automated an= d >>>>> we have different solution to do it. But that should never be a >>>>> default mecanism imo. >>>> >>>> Let's assume what you're saying is OK and that the real bug here is >>>> that it *does* restart when I kill and restart CouchDB... >>> >>> Any log in couch? Does it simply stop the replication? >>>> >>>> The one that I notice the most is an application that collects data in >>>> my house that replicates to my laptop. The *only* time this can >>>> possibly work is when my laptop is on my home LAN. That means, for it >>>> to start properly, it has to be connected to my home LAN before I ever >>>> see anything. >>>> >>>> Then I go somewhere else. Let's assume the somewhere else has a >>>> host named "menudo" (which is the unfortunate hostname of the machine = in >>>> my house running CouchDB). Because I'm on a different network, the >>>> replicator decides it's probably not the menudo I'm looking for, so it >>>> ceases replication. >>>> >>>> When I go back home, shouldn't it start back up? >>> >>> At this point the replication should be stopped because it retried >>> too many time on your other network. I am not sure anyway that it is >>> desirable to restart it from the old replication doc at least without >>> checking that the remote is the remote. >>> >>> >>>> >>>> Doesn't this whole thing get a lot more simple and inline with what >>>> any reasonable user might expect if you just say, "configured >>>> replications run as configured"? >>> >>> I agree, that it is interresting to have such features and i know at >>> least 2 projects proposing layers to handle that. Imo that is >>> requiring a small change in the the replicator client to check the >>> remote and eventually associate a remote id to an replication id and >>> change have a mapping [remote id, {Host, Port}] that is change after a >>> conversation with the remote node. That is this part that should be >>> switchable so for people that want it they could eventually check >>> against a node id . The logic depends on the application policy imo. >>> >>> - beno=EEt >