Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4F3D07BA5 for ; Fri, 30 Sep 2011 04:29:31 +0000 (UTC) Received: (qmail 88587 invoked by uid 500); 30 Sep 2011 04:29:30 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 88275 invoked by uid 500); 30 Sep 2011 04:29:29 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 87961 invoked by uid 99); 30 Sep 2011 04:29:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 04:29:15 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 04:29:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D78BA2A1D35 for ; Fri, 30 Sep 2011 04:28:50 +0000 (UTC) Date: Fri, 30 Sep 2011 04:28:50 +0000 (UTC) From: "Benoit Chesneau (Commented) (JIRA)" To: dev@couchdb.apache.org Message-ID: <168338004.10398.1317356930884.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <827317464.49220.1316572028845.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1294) Use Jiffy for JSON serialization MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117867#comment-13117867 ] Benoit Chesneau commented on COUCHDB-1294: ------------------------------------------ just tested .It need a little upgrade for last trunk. Anyway I get some errors in js tests: [debug] [<0.178.0>] OS Process #Port<0.2856> Input :: ["reset",{"reduce_limit":true,"timeout":5000}] [debug] [<0.178.0>] OS Process #Port<0.2856> Output :: true [debug] [<0.178.0>] OS Process #Port<0.2856> Input :: ["add_fun","function (doc) {emit(doc.integer, doc.integer)};"] [debug] [<0.178.0>] OS Process #Port<0.2856> Output :: ["error","compilation_error","Expression does not eval to a function. ((new String(\"(function (doc) {emit(doc.integer, doc.integer)};)\")))"] [error] [<0.218.0>] OS Process Error <0.178.0> :: {<<"compilation_error">>, <<"Expression does not eval to a function. ((new String(\"(function (doc) {emit(doc.integer, doc.integer)};)\")))">>} [error] [emulator] Error in process <0.218.0> with exit value: {{nocatch,{<<17 bytes>>,<<108 bytes>>}},[{couch_os_process,prompt,2},{couch_query_servers,proc_prompt,2},{couch_query_servers,'-start_doc_map/3-fun-0-',2},{lists,foreach,2},{couch_query_servers,start_doc_map,3},{couch_mrview_updater,start_query_server... =ERROR REPORT==== 30-Sep-2011::06:25:07 === Error in process <0.218.0> with exit value: {{nocatch,{<<17 bytes>>,<<108 bytes>>}},[{couch_os_process,prompt,2},{couch_query_servers,proc_prompt,2},{couch_query_servers,'-start_doc_map/3-fun-0-',2},{lists,foreach,2},{couch_query_servers,start_doc_map,3},{couch_mrview_updater,start_query_server... [debug] [<0.123.0>] Linked process died abnormally: <0.178.0> (reason: {{nocatch, {<<"compilation_error">>, <<"Expression does not eval to a function. ((new String(\"(function (doc) {emit(doc.integer, doc.integer)};)\")))">>}}, [{couch_os_process, prompt, 2}, {couch_query_servers, proc_prompt, 2}, {couch_query_servers, '-start_doc_map/3-fun-0-', 2}, {lists, foreach, 2}, {couch_query_servers, start_doc_map, 3}, {couch_mrview_updater, start_query_server, 1}, {couch_mrview_updater, map_docs, 2}]}) [debug] [<0.138.0>] Minor error in HTTP request: {<<"compilation_error">>, <<"Expression does not eval to a function. ((new String(\"(function (doc) {emit(doc.integer, doc.integer)};)\")))">>} [debug] [<0.138.0>] Stacktrace: [{couch_mrview_util,get_view,4}, {couch_mrview,query_view,6}, {couch_httpd,etag_maybe,2}, {couch_mrview_http,design_doc_view,5}, {couch_httpd_db,do_db_req,2}, {couch_httpd,handle_request_int,5}, {mochiweb_http,headers,5}, {proc_lib,init_p_do_apply,3}] [info] [<0.138.0>] 127.0.0.1 - - GET /test_suite_db/_design/test/_view/no_reduce?reduce=false 500 [debug] [<0.138.0>] httpd 500 error response: {"error":"compilation_error","reason":"Expression does not eval to a function. ((new String(\"(function (doc) {emit(doc.integer, doc.integer)};)\")))"} on view_errors for example same kind of error in other tests. > Use Jiffy for JSON serialization > -------------------------------- > > Key: COUCHDB-1294 > URL: https://issues.apache.org/jira/browse/COUCHDB-1294 > Project: CouchDB > Issue Type: Improvement > Components: Database Core, HTTP Interface > Affects Versions: 1.2 > Reporter: Paul Joseph Davis > Labels: json > Attachments: 0001-Import-Jiffy.patch, 0002-Remove-old-ejson-app.patch > > > Jiffy is a NIF for JSON serialization. I wrote it quite a while ago but have finally gotten around to writing the integration for CouchDB. This is a direct replacement for ejson which does much less parsing in C. Jiffy is as close to mochijson2 (with our custom objects) as humanly possible. At the moment there are no known differences in output. Jiffy itself has been tested fairly extensively by a couple different groups so I'm fairly confident there aren't any major bugs left. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira