Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 85922 invoked from network); 5 Mar 2010 16:09:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Mar 2010 16:09:07 -0000 Received: (qmail 60605 invoked by uid 500); 5 Mar 2010 16:08:53 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 60558 invoked by uid 500); 5 Mar 2010 16:08:53 -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 60550 invoked by uid 99); 5 Mar 2010 16:08:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Mar 2010 16:08:52 +0000 X-ASF-Spam-Status: No, hits=3.6 required=10.0 tests=FREEMAIL_FROM,FS_REPLICA,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of djc.ochtman@gmail.com designates 74.125.82.52 as permitted sender) Received: from [74.125.82.52] (HELO mail-ww0-f52.google.com) (74.125.82.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Mar 2010 16:08:45 +0000 Received: by wwe15 with SMTP id 15so1986969wwe.11 for ; Fri, 05 Mar 2010 08:08:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=jJtGXe39JZtf9KONJewUkRVkd3TwabaME/duo0Sv4F4=; b=ZqmkoZSADU+5Yk3CwEBqe9Z7nfdUpnKccEcYIe9oc+iy3viCxiLueM9REE3Ce74jJA h6TOawN7VM6fr6XtMFrHegvXk9+6CiNxyQDzZE8FT1s4f4qfaiXYfMGQinjORksiUSO5 C6BJYJJwEfMqp11mgc+2J+RzYFVN7E3zhb/v0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=vSkBUah4ANes5qv5qFNqDXC7F7VorQ/a1ih/fc45CKjF8WHNH28SlJRvi4RiP65ruX Uhgkhg6ZDUzNdbmpgx7+eosAEkBVfl1YInlJA3mGeA2YYly+KhNaB7xWXpNCINhy1m5J +T+Eoajf44+VqKx3yLOTyXSDaLUJ/k3t3IXxc= MIME-Version: 1.0 Sender: djc.ochtman@gmail.com Received: by 10.216.88.205 with SMTP id a55mr233091wef.122.1267805305265; Fri, 05 Mar 2010 08:08:25 -0800 (PST) From: Dirkjan Ochtman Date: Fri, 5 Mar 2010 17:08:05 +0100 X-Google-Sender-Auth: 259080d35e42419e Message-ID: Subject: Preserving seq order through replication To: dev@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi there, I recently started using continuous replication to propagate a document stream from a producing server to a consuming server. The producing server is fed by a single process that puts messages in, and on the consuming server we have a process reading the continuous changes feed to get messages back out and process them. We migrated to this from having a single server that both processes talked to because the connection between the servers isn't always reliable, unfortunately. This worked rather well for about 50 hours, but now it turns out that in some cases the continuous replication doesn't always preserve the ordering of the sequence. That is, the insertion order, which is consistent on the producing server (as expected, as there's a single feeding process doing a single update per document) doesn't match the order in the continuous feed of changes on the consuming server. This is kind of a WTF. Could it be fixed? Cheers, Dirkjan