From couchdb-dev-return-414-apmail-incubator-couchdb-dev-archive=incubator.apache.org@incubator.apache.org Fri May 23 16:34:17 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 5436 invoked from network); 23 May 2008 16:34:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 May 2008 16:34:17 -0000 Received: (qmail 72340 invoked by uid 500); 23 May 2008 16:34:18 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 72187 invoked by uid 500); 23 May 2008 16:34:18 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 72166 invoked by uid 99); 23 May 2008 16:34:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2008 09:34:18 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2008 16:33:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 36E90234C11B for ; Fri, 23 May 2008 09:33:56 -0700 (PDT) Message-ID: <1349391713.1211560436220.JavaMail.jira@brutus> Date: Fri, 23 May 2008 09:33:56 -0700 (PDT) From: "Derek Haas (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Commented: (COUCHDB-32) map function timeout In-Reply-To: <2118644162.1207014384316.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599420#action_12599420 ] Derek Haas commented on COUCHDB-32: ----------------------------------- This is most likely because there is a hardcoded 5 second timeout per document defined for the query servers. src/couchdb/couch_query_servers.erl. If you want a quick fix, go into src/couchdb/couch_query_servers.erl, and at line 25 you'll see the timeout() function...you can up that value and recompile to be less likely to get a timeout error. > 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.