incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damien Katz (JIRA)" <j...@apache.org>
Subject [jira] Created: (COUCHDB-95) HTTP/mochiweb failures when tested via Safari
Date Tue, 15 Jul 2008 18:01:31 GMT
HTTP/mochiweb failures when tested via Safari
---------------------------------------------

                 Key: COUCHDB-95
                 URL: https://issues.apache.org/jira/browse/COUCHDB-95
             Project: CouchDB
          Issue Type: Bug
          Components: HTTP Interface
    Affects Versions: 0.8, 0.8.1
         Environment: Running test suite from Safari on OS X with a local couchdb instance
            Reporter: Damien Katz
            Assignee: Damien Katz


The tests randomly fail, but from Safari they seem to fail much more often than other browsers.
We think it's a timing bug inside mochiweb, and Safari has a fast javascript engine and triggers
it more reliably.

Typically when there is a test failure, an error like this is reported at the Erlang console:

[error] [<0.2821.0>] {error_report,<0.24.0>,
    {<0.2821.0>,crash_report,
     [[{pid,<0.2821.0>},
       {registered_name,[]},
       {error_info,
           {error,
               {case_clause,{error,einval}},
               [{mochiweb_request,get,2},
                {couch_httpd,handle_request,2},
                {mochiweb_http,headers,4},
                {proc_lib,init_p,5}]}},
       {initial_call,
           {mochiweb_socket_server,acceptor_loop,
               [{<0.110.0>,#Port<0.164>,#Fun<mochiweb_http.1.62821608>}]}},
       {ancestors,[couch_httpd,couch_server_sup,<0.31.0>]},
       {messages,[]},
       {links,[<0.110.0>,#Port<0.369>]},
       {dictionary,[{mochiweb_request_qs,[{"rev","2421655930"}]}]},
       {trap_exit,false},
       {status,running},
       {heap_size,4181},
       {stack_size,23},
       {reductions,79705}],
      []]}}
[error] [<0.110.0>] {error_report,<0.24.0>,
    {<0.110.0>,std_error,
     {mochiweb_socket_server,235,
         {child_error,{case_clause,{error,einval}}}}}}

=ERROR REPORT==== 15-Jul-2008::13:54:26 ===
{mochiweb_socket_server,235,
                        {child_error,{case_clause,{error,einval}}}}



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


Mime
View raw message