couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Shorin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1986) 04-replication-large-atts.t times out
Date Wed, 29 Jan 2014 10:36:09 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13885207#comment-13885207
] 

Alexander Shorin commented on COUCHDB-1986:
-------------------------------------------

Repost from dev@ ML with small fixes.

I added a bit more logging to ibrowse and couch_replicator and it seems that it takes ~120
secs to transfer single document with 9MB attachment in case remote->local where remote
is the same localhost. Here is the output:

{code}
[info] [<0.342.0>] <0.336.0>: requesting post "http://127.0.0.1:27786/couch_test_rep_db_b/_revs_diff"

    [{"Accept","application/json"},
     {"Content-Type","application/json"},
     {"User-Agent","CouchDB/0.0.0"}]
[info] [<0.342.0>] <0.336.0>: got response in 0 sec
[info] [<0.342.0>] <0.336.0>: requesting put "http://127.0.0.1:27786/couch_test_rep_db_b/doc9?new_edits=false"
    [{"Accept","application/json"},
     {"Content-Length",9019252},
     {"Content-Type","multipart/related;boundary=\"d0b1be0e0754a41b1dd5db669ed0f29b\""},
     {"User-Agent","CouchDB/0.0.0"}]
[info] [<0.342.0>] <0.336.0>: got response in 120 sec
[info] [<0.342.0>] <0.336.0>: requesting post "http://127.0.0.1:27786/couch_test_rep_db_b/_revs_diff"

    [{"Accept","application/json"},
     {"Content-Type","application/json"},
     {"User-Agent","CouchDB/0.0.0"}]
[info] [<0.342.0>] <0.336.0>: got response in 0 sec
{code}

the test fails with timeout during transferring of the third document.

And here is more interesting logs:
https://www.friendpaste.com/7BOCpdlWxnDpmRWXsNQjI7
I added logging around gen_tcp:send call at:
https://github.com/apache/couchdb/blob/master/src/ibrowse/ibrowse_http_client.erl#L560

do_send/2 >>> - before gen_tcp:send call
do_send/2 <<< - after gen_tcp:send call

Note how the timings rapidly starts but very soon it hits some limitation and transfer goes
by very short chunks which are split by the gen_tcp:send call and timeout lasts always around
200 milliseconds. Also sometimes the next message arrives from ibrowse tracing:
2014-1-29_9:6:25:259 -- (127.0.0.1:55867) - Inactivity timeout triggered. Shutting down connection

Any ideas?

> 04-replication-large-atts.t times out
> -------------------------------------
>
>                 Key: COUCHDB-1986
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1986
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Replication
>    Affects Versions: 1.5.0
>            Reporter: Jan Lehnardt
>
> 04-replication-large-atts.t gets stuck around 558, sometimes a little earlier or later,
but it times out eventually, regardless of the timeout. I tried doubling and such.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message