You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Benoit Chesneau (JIRA)" <ji...@apache.org> on 2008/04/01 10:56:25 UTC

[jira] Commented: (COUCHDB-32) map function timeout

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

Benoit Chesneau commented on COUCHDB-32:
----------------------------------------

make more tests tomorrow. I can reproduce this issue on freebsd.

In fact when I do a simple view :

function(doc) {
  map(null, doc);
]

it timeout (on 229 results)

when I specify id :
function(doc) {
   if (doc._id == 'goodid')
     map(doc._id, doc);
}

it work.

is there someting to do about such timeout ?

> map function timeout
> --------------------
>
>                 Key: COUCHDB-32
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-32
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>         Environment: ubuntu/ openbsd . dualcore amd64 440+ with 2go of ram, couchdb version 0.7.2
>            Reporter: Benoit Chesneau
>            Priority: Critical
>
> I can't have any results with views on 229 items in database. Each execution give this result :
> {"error":"map_process_error","reason":"map function timed out"} . _adhoc views_ work.
> debug log :
> [Tue, 01 Apr 2008 01:36:17 GMT] [info] [<0.68.0>] HTTP Request: GET /test/_view/paste/all HTTP/1.1
> [Tue, 01 Apr 2008 01:36:17 GMT] [debug] [<0.68.0>] Headers: [{"connection","keep-alive"},
>           {"keep-alive","300"},
>           {"accept-charset","ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
>            {"accept-encoding","gzip,deflate"},
>           {"accept-language","en-us,en;q=0.5"},
>           {"accept",
>            "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"},
>           {"user-agent",
>            "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.13) Gecko/20080325 Ubuntu/7.10 (gutsy) Firefox/2.0.0.13"},
>           {"host","localhost:5984"}]
> [Tue, 01 Apr 2008 01:36:17 GMT] [debug] [<0.68.0>] Body: []
> [Tue, 01 Apr 2008 01:36:18 GMT] [info] [<0.77.0>] Spawning new text/javascript instance.
> [Tue, 01 Apr 2008 01:36:30 GMT] [error] [emulator] Error in process <0.77.0> with exit value: {{nocatch,{map_process_error,"map function timed out"}},[{couch_query_servers,readline,2},{couch_query_servers,read_json,1},{couch_query_servers,'-map_docs/2-fun-0-',2},{lists,map,2},{couch_query_servers,map_docs,2... 
> [Tue, 01 Apr 2008 01:36:30 GMT] [info] [<0.68.0>] HTTP Error (code 500): {obj,[{error,"map_process_error"},
>                              {reason,"map function timed out"}]}
> [Tue, 01 Apr 2008 01:36:30 GMT] [debug] [<0.68.0>] HTTP Response Headers (code 500): [{"cache-control","no-cache"},
>                                    {"pragma","no-cache"},
>                                    {"expires","Tue, 01 Apr 2008 01:36:30 GMT"},
>                                    {"transfer-encoding","chunked"},
>                                    {"content-type",
>                                     "text/plain;charset=utf-8"}]
> [Tue, 01 Apr 2008 01:36:30 GMT] [info] [<0.68.0>] HTTP Response Code:500
> View tested :
> function(doc) { 
>    if (doc.type == 'snippet') map(doc._id, doc); 
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.