couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <kxe...@gmail.com>
Subject Re: stuck replication
Date Sun, 28 Dec 2014 19:35:36 GMT
On Sun, Dec 28, 2014 at 10:15 PM, Cory Zue <czue@dimagi.com> wrote:
>> In the logs you could try to check which document was replicated the
>> last, then read database changes until the same document and see which
>> comes after.
>
>
> Where could I find this information in the logs?

Since you specified source database in URL format, there will be something like:
[Sun, 28 Dec 2014 12:45:17 GMT] [info] [<0.21470.20>] 127.0.0.1 - -
GET /db/some-doc-id?open_revs=[...]&latest=true 200

Pick up this doc id, make a request:

http://localhost:5984/db/_changes?doc_ids=["some-doc-id"]

get the seq number and then find out what the part of documents has
left out of board:

http://localhost:5984/db/_changes?since=<seq>

--
,,,^..^,,,

Mime
View raw message