You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Rudi Benkovic (JIRA)" <ji...@apache.org> on 2010/11/29 16:51:12 UTC

[jira] Created: (COUCHDB-970) Server crashes after successfull compaction

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


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.


[jira] Commented: (COUCHDB-970) Server crashes after successfull compaction

Posted by "Adam Kocoloski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973701#action_12973701 ] 

Adam Kocoloski commented on COUCHDB-970:
----------------------------------------

Hi Bob, that looks like a completely different issue to me.  DB compaction and view compaction share almost no code.  It's interesting that you don't see this with CouchDB 1.0.1; I don't recall any changes to the reference counting code that would have affected this timeout you saw.

> 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.


[jira] Commented: (COUCHDB-970) Server crashes after successfull compaction

Posted by "Bob Clary (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12974325#action_12974325 ] 

Bob Clary commented on COUCHDB-970:
-----------------------------------

Adam, thanks. I filed COUCHDB-994

> 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.


[jira] [Closed] (COUCHDB-970) Server crashes after successfull compaction

Posted by "Randall Leeds (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Leeds closed COUCHDB-970.
---------------------------------


> 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
>             Fix For: 1.0.2
>
>         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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (COUCHDB-970) Server crashes after successfull compaction

Posted by "Rudi Benkovic (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rudi Benkovic resolved COUCHDB-970.
-----------------------------------

       Resolution: Not A Problem
    Fix Version/s: 1.0.2

Upgraded to CouchBase which is based on 1.0.2, seems to work fine now. 0.11.2 didn't correctly compact the database - the newly compacted database always contained old, stale documents, even retaining that count in doc_del_count. Seems to be fixed now.

> 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
>             Fix For: 1.0.2
>
>         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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (COUCHDB-970) Server crashes after successfull compaction

Posted by "Bob Clary (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973523#action_12973523 ] 

Bob Clary commented on COUCHDB-970:
-----------------------------------

Sorry. That attachment should have been text, but I don't know how to switch its mime-type in Jira.

> 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.


[jira] Commented: (COUCHDB-970) Server crashes after successfull compaction

Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12964787#action_12964787 ] 

Filipe Manana commented on COUCHDB-970:
---------------------------------------

I think it's likely to be fixed in the upcoming release 1.0.2 (and 1.1.0 of course).
Perhaps you can test the 1.0.x branch?

> 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
>
> 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.


[jira] Updated: (COUCHDB-970) Server crashes after successfull compaction

Posted by "Bob Clary (JIRA)" <ji...@apache.org>.
     [ 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.