couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Cottlehuber (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1696) Support Erlang/OTP R16B
Date Tue, 12 Mar 2013 22:21:13 GMT

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

Dave Cottlehuber commented on COUCHDB-1696:
-------------------------------------------

OK, I got a branch building, not all etaps pass :-(.

120-stats-collect.t (Wstat: 0 Tests: 11 Failed: 2)
  Failed tests:  9-10
the failures are cosmetic - ordering is different for some tuples. Not sure why. Klaus maybe
you have time to look into that :D

200-view-group-no-db-leaks.t (Wstat: 0 Tests: 28 Failed: 3)
  Failed tests:  5, 9, 20

eugh. Anybody in the mid-west want to comment?

not ok 5  - DB ref counter is only held by couch_db and couch_db_updater
    ---
    description: "DB ref counter is only held by couch_db and couch_db_updater"
    found:       3
    wanted:      2
    ...
not ok 9  - DB ref counter is only held by couch_db and couch_db_updater
    ---
    description: "DB ref counter is only held by couch_db and couch_db_updater"
    found:       3
    wanted:      2
    ...
not ok 20  - DB ref counter is only held by couch_db and couch_db_updater
    ---
    description: "DB ref counter is only held by couch_db and couch_db_updater"
    found:       3
    wanted:      2
    ...


120-stats-collect.t ..
# Current time local 2013-03-12 23:00:39
# Using etap version "0.3.4"
1..11
ok 1  - Incrememnt tracks correctly.
ok 2  - Decremented to zaro.
ok 3  - Absolute values are recorded correctly.
ok 4  - Absolute values are cleared correctly.
ok 5  - track_process_count incrememnts the counter.
ok 6  - track_process_count allows more than one incrememnt per Pid
ok 7  - Process count is decremented when process exits.
ok 8  - Process count is decremented for each call to track_process_count.
not ok 9  - all/0 returns all counters and absolute values.
    ---
    description: "all/0 returns all counters and absolute values."
    found:       [{hoopla,0},{foo,0},{bar,[1.0,0.0]}]
    wanted:      [{foo,0},{hoopla,0},{bar,[1.0,0.0]}]
    ...
not ok 10  - all/1 returns only the specified type.
    ---
    description: "all/1 returns only the specified type."
    found:       [{hoopla,0},{foo,0}]
    wanted:      [{foo,0},{hoopla,0}]
    ...
ok 11  - all/1 returns only the specified type.
Failed 2/11 subtests

Test Summary Report
-------------------
120-stats-collect.t (Wstat: 0 Tests: 11 Failed: 2)
  Failed tests:  9-10
Files=1, Tests=11,  1 wallclock secs ( 0.03 usr  0.01 sys +  0.18 cusr  0.04 csys =  0.26
CPU)
Result: FAIL



200-view-group-no-db-leaks.t ..
# Current time local 2013-03-12 23:11:36
# Using etap version "0.3.4"
1..28
Apache CouchDB 0.0.0 (LogLevel=info) is starting.
Apache CouchDB has started. Time to relax.
[info] [<0.2.0>] Apache CouchDB has started on http://127.0.0.1:55707/
[info] [<0.118.0>] Opening index for db: couch_test_view_group_db_leaks idx: _design/foo
sig: "3c9427cba9de8f4e154f61e29ad6eadc"
ok 1  - got view group pid
ok 2  - view group pid is alive
[info] [<0.123.0>] Starting index update for db: couch_test_view_group_db_leaks idx:
_design/foo
[info] [<0.123.0>] Index update finished for db: couch_test_view_group_db_leaks idx:
_design/foo
[info] [<0.66.0>] 127.0.0.1 - - GET /couch_test_view_group_db_leaks/_design/foo/_view/bar
200
ok 3  - got view response
ok 4  - result set has correct # of rows
not ok 5  - DB ref counter is only held by couch_db and couch_db_updater
    ---
    description: "DB ref counter is only held by couch_db and couch_db_updater"
    found:       3
    wanted:      2
    ...
ok 6  - view group pid is alive
[info] [<0.123.0>] Starting index update for db: couch_test_view_group_db_leaks idx:
_design/foo
[info] [<0.123.0>] Index update finished for db: couch_test_view_group_db_leaks idx:
_design/foo
[info] [<0.67.0>] 127.0.0.1 - - GET /couch_test_view_group_db_leaks/_design/foo/_view/bar
200
ok 7  - got view response
ok 8  - result set has correct # of rows
not ok 9  - DB ref counter is only held by couch_db and couch_db_updater
    ---
    description: "DB ref counter is only held by couch_db and couch_db_updater"
    found:       3
    wanted:      2
    ...
ok 10  - view group pid is alive
[info] [<0.112.0>] Starting compaction for db "couch_test_view_group_db_leaks"
[error] [<0.146.0>] Could not open file /repos/couch/git/tmp/lib/couch_test_view_group_db_leaks.couch.compact:
no such file or directory
[info] [<0.112.0>] Compaction for db "couch_test_view_group_db_leaks" completed.
ok 11  - DB ref counter is only held by couch_db and couch_db_updater
ok 12  - DB ref counter changed
ok 13  - old DB ref counter is not alive
ok 14  - view group pid is alive
[info] [<0.159.0>] Compaction started for db: couch_test_view_group_db_leaks idx: _design/foo
[info] [<0.68.0>] 127.0.0.1 - - GET /couch_test_view_group_db_leaks/_design/foo/_info
200
[info] [<0.159.0>] Compaction finished for db: couch_test_view_group_db_leaks idx: _design/foo
[info] [<0.129.0>] 127.0.0.1 - - GET /couch_test_view_group_db_leaks/_design/foo/_info
200
ok 15  - DB ref counter is only held by couch_db and couch_db_updater
ok 16  - DB ref counter didn't change
ok 17  - view group pid is alive
[info] [<0.123.0>] Starting index update for db: couch_test_view_group_db_leaks idx:
_design/foo
[info] [<0.123.0>] Index update finished for db: couch_test_view_group_db_leaks idx:
_design/foo
[info] [<0.140.0>] 127.0.0.1 - - GET /couch_test_view_group_db_leaks/_design/foo/_view/bar
200
ok 18  - got view response
ok 19  - result set has correct # of rows
not ok 20  - DB ref counter is only held by couch_db and couch_db_updater
    ---
    description: "DB ref counter is only held by couch_db and couch_db_updater"
    found:       3
    wanted:      2
    ...
ok 21  - view group pid is alive
# updating the design document with a new view definition
[info] [<0.118.0>] Closing index for db: couch_test_view_group_db_leaks idx: _design/foo
sig: "3c9427cba9de8f4e154f61e29ad6eadc"
reason: normal
[info] [<0.178.0>] Opening index for db: couch_test_view_group_db_leaks idx: _design/foo
sig: "2d2d92192a74ceaa9cc2604ba03025e4"
ok 22  - got new view group pid
ok 23  - new view group pid is alive
ok 24  - new view group has a different pid
# querying view with ?stale=ok, must return empty row set
[info] [<0.161.0>] 127.0.0.1 - - GET /couch_test_view_group_db_leaks/_design/foo/_view/bar?stale=ok
200
ok 25  - got view response
ok 26  - result set has correct # of rows
# querying view (without stale), must return 5 rows with value 1
[info] [<0.183.0>] Starting index update for db: couch_test_view_group_db_leaks idx:
_design/foo
[info] [<0.183.0>] Index update finished for db: couch_test_view_group_db_leaks idx:
_design/foo
[info] [<0.81.0>] 127.0.0.1 - - GET /couch_test_view_group_db_leaks/_design/foo/_view/bar
200
ok 27  - got view response
ok 28  - result set has correct # of rows
# old view group is dead after ddoc update
# deleting database
[error] [<0.195.0>] Could not open file /repos/couch/git/tmp/lib/couch_test_view_group_db_leaks.couch:
no such file or directory
[info] [<0.178.0>] Closing index for db: couch_test_view_group_db_leaks idx: _design/foo
sig: "2d2d92192a74ceaa9cc2604ba03025e4"
reason: {bad_return_value,{not_found,no_db_file}}
# new view group is dead after DB deletion
[error] [<0.178.0>] ** Generic server <0.178.0> terminating
** Last message in was commit
** When Server state == {st,couch_mrview_index,
                         {mrst,
                          <<45,45,146,25,42,116,206,170,156,194,96,75,160,48,
                            37,228>>,
                          <0.180.0>,<0.182.0>,
                          <<"couch_test_view_group_db_leaks">>,
                          <<"_design/foo">>,<<"javascript">>,[],
                          {[]},
                          [{mrview,0,7,0,
                            [<<"bar">>],
                            [],<<"function(doc) { emit(doc._id, 1); }">>,
                            {btree,<0.180.0>,
                             {147,{5,[]},94},
                             #Fun<couch_btree.3.71351651>,
                             #Fun<couch_btree.4.71351651>,
                             #Fun<couch_ejson_compare.less_json_ids.2>,
                             #Fun<couch_mrview_util.7.66669121>,snappy},
                            []}],
                          {btree,<0.180.0>,
                           {51,[],96},
                           #Fun<couch_btree.3.71351651>,
                           #Fun<couch_btree.4.71351651>,
                           #Fun<couch_btree.5.71351651>,nil,snappy},
                          7,0,undefined,undefined,undefined,undefined,
                          undefined,nil},
                         <0.183.0>,<0.184.0>,[],0,false,false}
** Reason for termination ==
** {bad_return_value,{not_found,no_db_file}}

=ERROR REPORT==== 12-Mar-2013::23:11:39 ===
** Generic server <0.178.0> terminating
** Last message in was commit
** When Server state == {st,couch_mrview_index,
                         {mrst,
                          <<45,45,146,25,42,116,206,170,156,194,96,75,160,48,
                            37,228>>,
                          <0.180.0>,<0.182.0>,
                          <<"couch_test_view_group_db_leaks">>,
                          <<"_design/foo">>,<<"javascript">>,[],
                          {[]},
                          [{mrview,0,7,0,
                            [<<"bar">>],
                            [],<<"function(doc) { emit(doc._id, 1); }">>,
                            {btree,<0.180.0>,
                             {147,{5,[]},94},
                             #Fun<couch_btree.3.71351651>,
                             #Fun<couch_btree.4.71351651>,
                             #Fun<couch_ejson_compare.less_json_ids.2>,
                             #Fun<couch_mrview_util.7.66669121>,snappy},
                            []}],
                          {btree,<0.180.0>,
                           {51,[],96},
                           #Fun<couch_btree.3.71351651>,
                           #Fun<couch_btree.4.71351651>,
                           #Fun<couch_btree.5.71351651>,nil,snappy},
                          7,0,undefined,undefined,undefined,undefined,
                          undefined,nil},
                         <0.183.0>,<0.184.0>,[],0,false,false}
** Reason for termination ==
** {bad_return_value,{not_found,no_db_file}}
[error] [<0.178.0>] {error_report,<0.23.0>,
                     {<0.178.0>,crash_report,
                      [[{initial_call,{couch_index,init,['Argument__1']}},
                        {pid,<0.178.0>},
                        {registered_name,[]},
                        {error_info,
                         {exit,
                          {bad_return_value,{not_found,no_db_file}},
                          [{gen_server,terminate,6,
                            [{file,"gen_server.erl"},{line,747}]},
                           {proc_lib,init_p_do_apply,3,
                            [{file,"proc_lib.erl"},{line,239}]}]}},
                        {ancestors,[<0.177.0>]},
                        {messages,
                         [{'DOWN',#Ref<0.0.0.1077>,process,<0.111.0>,shutdown},
                          {'$gen_cast',delete}]},
                        {links,[<0.93.0>]},
                        {dictionary,[]},
                        {trap_exit,false},
                        {status,running},
                        {heap_size,2586},
                        {stack_size,27},
                        {reductions,4455}],
                       []]}}
[error] [<0.93.0>] ** Generic server couch_index_server terminating
** Last message in was {'EXIT',<0.178.0>,
                               {bad_return_value,{not_found,no_db_file}}}
** When Server state == {st,"/repos/couch/git/tmp/lib"}
** Reason for termination ==
** {bad_return_value,{not_found,no_db_file}}


=ERROR REPORT==== 12-Mar-2013::23:11:39 ===
** Generic server couch_index_server terminating
** Last message in was {'EXIT',<0.178.0>,
                               {bad_return_value,{not_found,no_db_file}}}
** When Server state == {st,"/repos/couch/git/tmp/lib"}
** Reason for termination ==
** {bad_return_value,{not_found,no_db_file}}
[error] [<0.93.0>] {error_report,<0.23.0>,
                       {<0.93.0>,crash_report,
                        [[{initial_call,
                              {couch_index_server,init,['Argument__1']}},
                          {pid,<0.93.0>},
                          {registered_name,couch_index_server},
                          {error_info,
                              {exit,
                                  {bad_return_value,{not_found,no_db_file}},
                                  [{gen_server,terminate,6,
                                       [{file,"gen_server.erl"},{line,747}]},
                                   {proc_lib,init_p_do_apply,3,
                                       [{file,"proc_lib.erl"},{line,239}]}]}},
                          {ancestors,
                              [couch_secondary_services,couch_server_sup,
                               <0.2.0>]},
                          {messages,[]},
                          {links,[<0.94.0>,<0.54.0>]},
                          {dictionary,[]},
                          {trap_exit,true},
                          {status,running},
                          {heap_size,1598},
                          {stack_size,27},
                          {reductions,3158}],
                         [{neighbour,
                              [{pid,<0.94.0>},
                               {registered_name,[]},
                               {initial_call,
                                   {couch_event_sup,init,['Argument__1']}},
                               {current_function,{gen_server,loop,6}},
                               {ancestors,
                                   [couch_index_server,
                                    couch_secondary_services,couch_server_sup,
                                    <0.2.0>]},
                               {messages,[]},
                               {links,[<0.93.0>,<0.49.0>]},
                               {dictionary,[]},
                               {trap_exit,false},
                               {status,waiting},
                               {heap_size,233},
                               {stack_size,9},
                               {reductions,32}]}]]}}
[error] [<0.54.0>] {error_report,<0.23.0>,
                       {<0.54.0>,supervisor_report,
                        [{supervisor,{local,couch_secondary_services}},
                         {errorContext,child_terminated},
                         {reason,{bad_return_value,{not_found,no_db_file}}},
                         {offender,
                             [{pid,<0.93.0>},
                              {name,index_server},
                              {mfargs,{couch_index_server,start_link,[]}},
                              {restart_type,permanent},
                              {shutdown,brutal_kill},
                              {child_type,worker}]}]}}
Failed 3/28 subtests

Test Summary Report
-------------------
200-view-group-no-db-leaks.t (Wstat: 0 Tests: 28 Failed: 3)
  Failed tests:  5, 9, 20
Files=1, Tests=28,  4 wallclock secs ( 0.05 usr  0.01 sys +  0.43 cusr  0.15 csys =  0.64
CPU)
Result: FAIL


                
> Support Erlang/OTP R16B
> -----------------------
>
>                 Key: COUCHDB-1696
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1696
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>            Reporter: Klaus Trainer
>
> When trying to build e.g. 1.3.0-rc.1 or current master with Erlang/OTP R16B, one gets
the following compile error:
> mochifmt_records.erl:12: parameterized modules are no longer supported
> mochifmt_records.erl:19: variable 'Recs' is unbound
> R16B should definitively be supported in the next release. The fix could be as simple
as upgrading mochiweb, as the recently released mochiweb v2.4.2 is R16B-compatible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message