couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikolai Teofilov <n.teofi...@gmail.com>
Subject Re: Replication hangs on streaming inline document attachments
Date Thu, 15 Jul 2010 22:24:59 GMT
replication triggered from 0.11:

1.0 -> 0.11 works (pull)

0.11 -> 1.0 fails with (push):

1> [info] [<0.103.0>] starting new replication "f9533f7a30bef0a5ca398b501c6d0b70"
at <0.157.0>
1> [info] [<0.157.0>] replication terminating due to target_error: <<"bad_content_type">>
1> [info] [<0.103.0>] 127.0.0.1 - - 'POST' /_replicate 500

triggered from 1.0

1.0 -> 0.11 fails  (push) without logs
0.11->1.0  fails (pull) with

>> 1> [info] [<0.1028.0>] starting new replication "5427f9ab10e93ee8b02bd9a3e0050c58"
at <0.1069.0>
>> 1> [error] [<0.1083.0>] streaming att. ended but more data requested {1279,225570,362980}
>> 1> [info] [<0.1083.0>] request for "test/foo.txt" timed out, retrying in
0.5 seconds
>> 1> [error] [<0.1083.0>] streaming att. ended but more data requested {1279,225571,40192}
>> 1> [info] [<0.1083.0>] request for "test/foo.txt" timed out, retrying in
0.5 seconds
>> 1> [error] [<0.1083.0>] streaming att. ended but more data requested {1279,225574,323477}
>> 1> [info] [<0.1083.0>] request for "test/foo.txt" timed out, retrying in
0.5 seconds
>> 1> [error] [<0.1083.0>] streaming att. ended but more data requested {1279,225575,24131}
>> 1> [info] [<0.1083.0>] request for "test/foo.txt" timed out, retrying in
0.5 seconds
>> 1> [error] [<0.1083.0>] streaming att. ended but more data requested {1279,225575,688384}
>> 1> [info] [<0.1083.0>] request for "test/foo.txt" timed out, retrying in
0.5 seconds
>> 1> [error] [<0.1083.0>] streaming att. ended but more data requested {1279,225576,382178}
>> 1> [info] [<0.1083.0>] request for "test/foo.txt" timed out, retrying in
0.5 seconds


Cheers 
Nikolai

On 15.07.2010, at 23:52, Filipe David Manana wrote:

> In the meanwhile, can you try with a pull replication? Source would be
> your 0.11 couch and the target your 1.0 couch.
> 
> cheers
> 
> On Thu, Jul 15, 2010 at 9:47 PM, Nikolai Teofilov <n.teofilov@gmail.com> wrote:
>> The problem apear to exist onliy on replication 0.11 to 1.0
>> 
>> How to reproduce the bug:
>> 
>> On couchdb 0.11 create a database with a document that contains inline base64 encoded
attachment.
>> 
>> 
>> {
>>  "_id" : "test",
>>  "_attachments":
>>  {
>>    "foo.txt":
>>    {
>>      "content_type":"text\/plain",
>>      "data": "VGhpcyBpcyBhIGJhc2U2NCBlbmNvZGVkIHRleHQ="
>>    }
>>  }
>> }
>> 
>> replication 0.11 -> (CouchDBX) 1.0 will hang with following error log:
>> 
>> 1> [info] [<0.1028.0>] starting new replication "5427f9ab10e93ee8b02bd9a3e0050c58"
at <0.1069.0>
>> 1> [error] [<0.1083.0>] streaming att. ended but more data requested {1279,225570,362980}
>> 1> [info] [<0.1083.0>] request for "test/foo.txt" timed out, retrying in
0.5 seconds
>> 1> [error] [<0.1083.0>] streaming att. ended but more data requested {1279,225571,40192}
>> 1> [info] [<0.1083.0>] request for "test/foo.txt" timed out, retrying in
0.5 seconds
>> 1> [error] [<0.1083.0>] streaming att. ended but more data requested {1279,225574,323477}
>> 1> [info] [<0.1083.0>] request for "test/foo.txt" timed out, retrying in
0.5 seconds
>> 1> [error] [<0.1083.0>] streaming att. ended but more data requested {1279,225575,24131}
>> 1> [info] [<0.1083.0>] request for "test/foo.txt" timed out, retrying in
0.5 seconds
>> 1> [error] [<0.1083.0>] streaming att. ended but more data requested {1279,225575,688384}
>> 1> [info] [<0.1083.0>] request for "test/foo.txt" timed out, retrying in
0.5 seconds
>> 1> [error] [<0.1083.0>] streaming att. ended but more data requested {1279,225576,382178}
>> 1> [info] [<0.1083.0>] request for "test/foo.txt" timed out, retrying in
0.5 seconds
>> 
>> Cheers
>> Nikolai
> 
> 
> 
> -- 
> Filipe David Manana,
> fdmanana@apache.org
> 
> "Reasonable men adapt themselves to the world.
>  Unreasonable men adapt the world to themselves.
>  That's why all progress depends on unreasonable men."


Mime
View raw message