[ 
https://issues.apache.org/jira/browse/COUCHDB-970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bob Clary updated COUCHDB-970:
------------------------------

    Attachment: couch.log.errors

Actually I believe this is worse in the 1.0.x branch. I recently tried to 
switch to 1.0.x to pick up recent fixes and found it unusable for large views. 
CouchDB would crash upon completing the compaction and then start over by 
indexing the view again. The database contains over 9 million records and when 
initially created the problematic views were 20G to 95G in size. They would 
compact to less than 5G before crashing. I've reverted to Couch 1.0.1 and do 
not have the same issue. Should I file a different bug or is this one 
sufficient?

I've attached an error log.

The system is a Centos5 64bit vm with 2CPU and 4G RAM running Erlang R14B and 
configured to use the 64bit js-devel libraries. I tested with:

URL: http://svn.apache.org/repos/asf/couchdb/branches/1.0.x
Repository Root: http://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 1050680


> Server crashes after successfull compaction
> -------------------------------------------
>
>                 Key: COUCHDB-970
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-970
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 0.11.2
>         Environment: Linux 2.6.18-194.11.3.el5 #1 SMP Mon Aug 30 16:19:16 EDT 
> 2010 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Rudi Benkovic
>         Attachments: couch.log.errors
>
>
> Our photos DB contains about 15K documents with 5-6 attachments per document 
> which results in a ~41GB database. Compacting this database (by removing the 
> original 30K documents to 15K) took a while, but after the temp file is 
> successfully switched, it crashes the whole server with these errors:
> ----------------------
> [Mon, 29 Nov 2010 15:24:52 GMT] [error] [<0.186.0>] ** Generic server 
> <0.186.0> terminating
> ** Last message in was {'$gen_cast',
>                            {compact_done,
>                                "/home/couchdb/photos.couch.compact"}}
> ** When Server state == {db,<0.185.0>,<0.186.0>,<0.4488.3>,
>                             <<"1291039821602632">>,<0.183.0>,<0.209.0>,
>                             {db_header,5,320843,0,
>                                 {81045895963,{12262,39070}},
>                                 {81045898520,51332},
>                                 nil,0,nil,nil,1000},
>                             320843,
>                             {btree,<0.183.0>,
>                                 {81045895963,{12262,39070}},
>                                 #Fun<couch_db_updater.7.82129660>,
>                                 #Fun<couch_db_updater.8.42953822>,
>                                 #Fun<couch_btree.5.124754102>,
>                                 #Fun<couch_db_updater.9.115326703>},
>                             {btree,<0.183.0>,
>                                 {81045898520,51332},
>                                 #Fun<couch_db_updater.10.103072508>,
>                                 #Fun<couch_db_updater.11.104248294>,
>                                 #Fun<couch_btree.5.124754102>,
>                                 #Fun<couch_db_updater.12.125559248>},
>                             {btree,<0.183.0>,nil,
>                                 #Fun<couch_btree.0.83553141>,
>                                 #Fun<couch_btree.1.30790806>,
>                                 #Fun<couch_btree.2.124754102>,nil},
>                             320843,<<"photos">>,"/home/couchdb/photos.couch",
>                             [],[],nil,
>                             {user_ctx,null,[],undefined},
>                             nil,1000,
>                             [before_header,after_header,on_file_open]}
> ** Reason for termination ==
> ** {timeout,
>        {gen_server,call,
>            [<0.185.0>,
>             {db_updated,
>                 {db,<0.185.0>,<0.186.0>,nil,<<"1291039821602632">>,<0.4617.3>,
>                     <0.4619.3>,
>                     {db_header,5,320843,0,
>                         {44797036682,{12262,39070}},
>                         {44797027887,51332},
>                         nil,0,nil,nil,1000},
>                     320843,
>                     {btree,<0.4617.3>,
>                         {44797036682,{12262,39070}},
>                         #Fun<couch_db_updater.7.82129660>,
>                         #Fun<couch_db_updater.8.42953822>,
>                         #Fun<couch_btree.5.124754102>,
>                         #Fun<couch_db_updater.9.115326703>},
>                     {btree,<0.4617.3>,
>                         {44797027887,51332},
>                         #Fun<couch_db_updater.10.103072508>,
>                         #Fun<couch_db_updater.11.104248294>,
>                         #Fun<couch_btree.5.124754102>,
>                         #Fun<couch_db_updater.12.125559248>},
>                     {btree,<0.4617.3>,nil,#Fun<couch_btree.0.83553141>,
>                         #Fun<couch_btree.1.30790806>,
>                         #Fun<couch_btree.2.124754102>,nil},
>                     320843,<<"photos">>,"/home/couchdb/photos.couch",[],[],
>                     nil,
>                     {user_ctx,null,[],undefined},
>                     nil,1000,
>                     [before_header,after_header,on_file_open]}}]}}
> [Mon, 29 Nov 2010 15:24:52 GMT] [error] [<0.186.0>] {error_report,<0.29.0>,
>     {<0.186.0>,crash_report,
>      [[{pid,<0.186.0>},
>        {registered_name,[]},
>        {error_info,
>            {exit,
>                {timeout,
>                    {gen_server,call,
>                        [<0.185.0>,
>                         {db_updated,
>                             {db,<0.185.0>,<0.186.0>,nil,
>                                 <<"1291039821602632">>,<0.4617.3>,<0.4619.3>,
>                                 {db_header,5,320843,0,
>                                     {44797036682,{12262,39070}},
>                                     {44797027887,51332},
>                                     nil,0,nil,nil,1000},
>                                 320843,
>                                 {btree,<0.4617.3>,
>                                     {44797036682,{12262,39070}},
>                                     #Fun<couch_db_updater.7.82129660>,
>                                     #Fun<couch_db_updater.8.42953822>,
>                                     #Fun<couch_btree.5.124754102>,
>                                     #Fun<couch_db_updater.9.115326703>},
>                                 {btree,<0.4617.3>,
>                                     {44797027887,51332},
>                                     #Fun<couch_db_updater.10.103072508>,
>                                     #Fun<couch_db_updater.11.104248294>,
>                                     #Fun<couch_btree.5.124754102>,
>                                     #Fun<couch_db_updater.12.125559248>},
>                                 {btree,<0.4617.3>,nil,
>                                     #Fun<couch_btree.0.83553141>,
>                                     #Fun<couch_btree.1.30790806>,
>                                     #Fun<couch_btree.2.124754102>,nil},
>                                 320843,<<"photos">>,
>                                 "/home/couchdb/photos.couch",[],[],nil,
>                                 {user_ctx,null,[],undefined},
>                                 nil,1000,
>                                 
> [before_header,after_header,on_file_open]}}]}},
>                [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
>        {initial_call,{couch_db_updater,init,['Argument__1']}},
>        {ancestors,[<0.185.0>,<0.182.0>]},
>        {messages,[{'EXIT',<0.4488.3>,normal},{'EXIT',<0.185.0>,shutdown}]},
>        {links,[]},
>        {dictionary,[]},
>        {trap_exit,true},
>        {status,running},
>        {heap_size,1346269},
>        {stack_size,23},
>        {reductions,16374254}],
>       []]}}
> ----------------------
> Is this fixed in 1.0.1 or is this a new issue?

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

Reply via email to