Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 91244 invoked from network); 19 Jul 2010 20:44:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jul 2010 20:44:49 -0000 Received: (qmail 41241 invoked by uid 500); 19 Jul 2010 20:44:48 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 41203 invoked by uid 500); 19 Jul 2010 20:44:47 -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 41195 invoked by uid 99); 19 Jul 2010 20:44:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 20:44:47 +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 randall.leeds@gmail.com designates 209.85.160.180 as permitted sender) Received: from [209.85.160.180] (HELO mail-gy0-f180.google.com) (209.85.160.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 20:44:40 +0000 Received: by gyg13 with SMTP id 13so4024425gyg.11 for ; Mon, 19 Jul 2010 13:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=yS0vt5sfBdn7HGw/9SMVlFGPwZGBQvj03fOuXXo8lRA=; b=Kb09ZJHjXK0WXTZGdTK1nItfy+AANh8kGK1rme9sCQPNYQJTeR7Q6bi90fZ40PB8Bl LKVpNYN68EVWxnOX+PnJs2P9E1K6GH0NXRvtZI2sbNCbF63z4ZfWrV4EUYacXHyUvfBP 4NVabZB4+9nytL3rfnM9Uec573kuIJvJtMaP0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=MjPHIyfdUEOfYZIDEfnYftdmUpey7vcyu/vvLBGQdeDPmnzlPteByZHr5p46vbWQIK rjccCZ8xYe+EFB6SZibLkaRIRh9ber7sGbMYA6YKh/+0VeS5y4gyhxvbz1tzcdXpWBQM +ED9aVhEBuqJoHzcGyfaS+iYvZv+mJBAFCmDk= MIME-Version: 1.0 Received: by 10.224.96.150 with SMTP id h22mr4289464qan.173.1279572259115; Mon, 19 Jul 2010 13:44:19 -0700 (PDT) Received: by 10.229.222.139 with HTTP; Mon, 19 Jul 2010 13:44:19 -0700 (PDT) In-Reply-To: <00720E0E-2DAD-4088-81FB-681B4CE53C94@gmail.com> References: <00720E0E-2DAD-4088-81FB-681B4CE53C94@gmail.com> Date: Mon, 19 Jul 2010 13:44:19 -0700 Message-ID: Subject: Re: Query progress of replication? From: Randall Leeds To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, Chris! Here we go with attempt number 4 to get past the spam guardians. Maybe quoting in the middle will help. On Sun, Jul 18, 2010 at 22:03, Chris Dawson wrote: > Is there a way to query the progress of replication? =C2=A0I suppose I co= uld just > inquire for the document count or is there a better way? =C2=A0Would this= work or > would I run into problems this way? GET /_active_tasks will show replications in-progress. It's not currently exposed in a public api way, but you _can_ query for the checkpoint history. If /_replicate with continuous=3Dtrue returns: {"result":"ok","id":"41e74bf0"} [I may have the form slightly wrong (the format), but,] Given that id, just do: GET /dbName/_local/41e74bf0 And you should get the checkpoint history. Hope that helps! -Randall