couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Chesneau (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1294) Use Jiffy for JSON serialization
Date Fri, 30 Sep 2011 04:28:50 GMT

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

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

        

Mime
View raw message