guanfeix edited a comment on issue #3956:
URL: https://github.com/apache/couchdb/issues/3956#issuecomment-1066296289


   I try stop the replicate, delete the dpl_job.compact,restart couchdb. catch 
the log 
   [Mon, 14 Mar 2022 02:55:56 GMT] [info] [<0.1327.0>] Starting compaction for 
db "dpl_job"
   [Mon, 14 Mar 2022 02:55:56 GMT] [info] [<0.117.0>] 127.0.0.1 - - POST 
/dpl_job/_compact 202
   [Mon, 14 Mar 2022 02:55:56 GMT] [error] [emulator] Error in process 
<0.1332.0> with exit value: 
{function_clause,[{couch_db_updater,'-copy_docs/4-fun-3-',[not_found],[{file,"couch_db_updater.erl"},{line,862}]},{lists,map,2,[{file,"lists.erl"},{line,1224}]},{lists,map,2,[{file,"lists.erl"},{line,1224}]},{couch_db_updater,copy_docs...
 
   
   
   [Mon, 14 Mar 2022 02:55:56 GMT] [error] [<0.1327.0>] ** Generic server 
<0.1327.0> terminating 
   ** Last message in was {'EXIT',<0.1332.0>,
                              {function_clause,
                                  [{couch_db_updater,'-copy_docs/4-fun-3-',
                                       [not_found],
                                       [{file,"couch_db_updater.erl"},
                                        {line,862}]},
                                   
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
                                   
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
                                   {couch_db_updater,copy_docs,4,
                                       [{file,"couch_db_updater.erl"},
                                        {line,861}]},
                                   {couch_db_updater,copy_compact,3,
                                       [{file,"couch_db_updater.erl"},
                                        {line,961}]},
                                   {couch_db_updater,start_copy_compact,1,
                                       [{file,"couch_db_updater.erl"},
                                        {line,1004}]}]}}
   ** When Server state == {db,<0.1326.0>,<0.1327.0>,<0.1332.0>,
                               <<"1647226556413367">>,<0.1328.0>,<0.1324.0>,
                               <0.1330.0>,
                               {db_header,6,36085,0,
                                   {433507267,{55,456,65074},88060},
                                   {433509119,543,43262},
                                   {433522899,[],20453},
                                   140,417682521,nil,10},
                               36085,
                               {btree,<0.1324.0>,
                                   {433507267,{55,456,65074},88060},
                                   #Fun<couch_db_updater.10.58444962>,
                                   #Fun<couch_db_updater.11.58444962>,
                                   #Fun<couch_btree.5.15886126>,
                                   #Fun<couch_db_updater.12.58444962>,snappy},
                               {btree,<0.1324.0>,
                                   {433509119,543,43262},
                                   #Fun<couch_db_updater.13.58444962>,
                                   #Fun<couch_db_updater.14.58444962>,
                                   #Fun<couch_btree.5.15886126>,
                                   #Fun<couch_db_updater.15.58444962>,snappy},
                               {btree,<0.1324.0>,
                                   {433522899,[],20453},
                                   #Fun<couch_btree.3.15886126>,
                                   #Fun<couch_btree.4.15886126>,
                                   #Fun<couch_btree.5.15886126>,nil,snappy},
                               36085,<<"dpl_job">>,
                               "/var/lib/couchdb-5985/dpl_job.couch",[],[],nil,
                               {user_ctx,null,[],undefined},
                               nil,10,
                               [before_header,after_header,on_file_open],
                               [{user_ctx,
                                    {user_ctx,null,
                                        [<<"_admin">>],
                                        <<"{couch_httpd_auth, 
default_authentication_handler}">>}}],
                               snappy,nil,nil}
   ** Reason for termination == 
   ** {function_clause,
          [{couch_db_updater,'-copy_docs/4-fun-3-',
               [not_found],
               [{file,"couch_db_updater.erl"},{line,862}]},
           {lists,map,2,[{file,"lists.erl"},{line,1224}]},
           {lists,map,2,[{file,"lists.erl"},{line,1224}]},
           {couch_db_updater,copy_docs,4,
               [{file,"couch_db_updater.erl"},{line,861}]},
           {couch_db_updater,copy_compact,3,
               [{file,"couch_db_updater.erl"},{line,961}]},
           {couch_db_updater,start_copy_compact,1,
               [{file,"couch_db_updater.erl"},{line,1004}]}]}
   
   [Mon, 14 Mar 2022 02:55:56 GMT] [error] [<0.1327.0>] {error_report,<0.31.0>,
                         {<0.1327.0>,crash_report,
                          [[{initial_call,
                             {couch_db_updater,init,['Argument__1']}},
                            {pid,<0.1327.0>},
                            {registered_name,[]},
                            {error_info,
                             {exit,
                              {function_clause,
                               [{couch_db_updater,'-copy_docs/4-fun-3-',
                                 [not_found],
                                 [{file,"couch_db_updater.erl"},{line,862}]},
                                {lists,map,2,[{file,"lists.erl"},{line,1224}]},
                                {lists,map,2,[{file,"lists.erl"},{line,1224}]},
                                {couch_db_updater,copy_docs,4,
                                 [{file,"couch_db_updater.erl"},{line,861}]},
                                {couch_db_updater,copy_compact,3,
                                 [{file,"couch_db_updater.erl"},{line,961}]},
                                {couch_db_updater,start_copy_compact,1,
                                 [{file,"couch_db_updater.erl"},{line,1004}]}]},
                              [{gen_server,terminate,6,
                                [{file,"gen_server.erl"},{line,744}]},
                               {proc_lib,init_p_do_apply,3,
                                [{file,"proc_lib.erl"},{line,239}]}]}},
                            {ancestors,[<0.1326.0>,<0.1323.0>]},
                            {messages,[]},
                            {links,[<0.1326.0>]},
                            {dictionary,[]},
                            {trap_exit,true},
                            {status,running},
                            {heap_size,4185},
                            {stack_size,27},
                            {reductions,1744}],
                           []]}}
   [Mon, 14 Mar 2022 02:55:56 GMT] [error] [<0.1326.0>] ** Generic server 
<0.1326.0> terminating 
   ** Last message in was {'EXIT',<0.1327.0>,
                              {function_clause,
                                  [{couch_db_updater,'-copy_docs/4-fun-3-',
                                       [not_found],
                                       [{file,"couch_db_updater.erl"},
                                        {line,862}]},
                                   
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
                                   
{lists,map,2,[{file,"lists.erl"},{line,1224}]},
                                   {couch_db_updater,copy_docs,4,
                                       [{file,"couch_db_updater.erl"},
                                        {line,861}]},
                                   {couch_db_updater,copy_compact,3,
                                       [{file,"couch_db_updater.erl"},
                                        {line,961}]},
                                   {couch_db_updater,start_copy_compact,1,
                                       [{file,"couch_db_updater.erl"},
                                        {line,1004}]}]}}
   ** When Server state == {db,<0.1326.0>,<0.1327.0>,<0.1332.0>,
                               <<"1647226556413367">>,<0.1328.0>,<0.1324.0>,
                               <0.1330.0>,
                               {db_header,6,36085,0,
                                   {433507267,{55,456,65074},88060},
                                   {433509119,543,43262},
                                   {433522899,[],20453},
                                   140,417682521,nil,10},
                               36085,
                               {btree,<0.1324.0>,
                                   {433507267,{55,456,65074},88060},
                                   #Fun<couch_db_updater.10.58444962>,
                                   #Fun<couch_db_updater.11.58444962>,
                                   #Fun<couch_btree.5.15886126>,
                                   #Fun<couch_db_updater.12.58444962>,snappy},
                               {btree,<0.1324.0>,
                                   {433509119,543,43262},
                                   #Fun<couch_db_updater.13.58444962>,
                                   #Fun<couch_db_updater.14.58444962>,
                                   #Fun<couch_btree.5.15886126>,
                                   #Fun<couch_db_updater.15.58444962>,snappy},
                               {btree,<0.1324.0>,
                                   {433522899,[],20453},
                                   #Fun<couch_btree.3.15886126>,
                                   #Fun<couch_btree.4.15886126>,
                                   #Fun<couch_btree.5.15886126>,nil,snappy},
                               36085,<<"dpl_job">>,
                               "/var/lib/couchdb-5985/dpl_job.couch",[],[],nil,
                               {user_ctx,null,[],undefined},
                               nil,10,
                               [before_header,after_header,on_file_open],
                               [{user_ctx,
                                    {user_ctx,null,
                                        [<<"_admin">>],
                                        <<"{couch_httpd_auth, 
default_authentication_handler}">>}}],
                               snappy,nil,nil}
   ** Reason for termination == 
   ** {function_clause,
          [{couch_db_updater,'-copy_docs/4-fun-3-',
               [not_found],
               [{file,"couch_db_updater.erl"},{line,862}]},
           {lists,map,2,[{file,"lists.erl"},{line,1224}]},
           {lists,map,2,[{file,"lists.erl"},{line,1224}]},
           {couch_db_updater,copy_docs,4,
               [{file,"couch_db_updater.erl"},{line,861}]},
           {couch_db_updater,copy_compact,3,
               [{file,"couch_db_updater.erl"},{line,961}]},
           {couch_db_updater,start_copy_compact,1,
               [{file,"couch_db_updater.erl"},{line,1004}]}]}
   
   [Mon, 14 Mar 2022 02:55:56 GMT] [error] [<0.1326.0>] {error_report,<0.31.0>,
                         {<0.1326.0>,crash_report,
                          [[{initial_call,{couch_db,init,['Argument__1']}},
                            {pid,<0.1326.0>},
                            {registered_name,[]},
                            {error_info,
                             {exit,
                              {function_clause,
                               [{couch_db_updater,'-copy_docs/4-fun-3-',
                                 [not_found],
                                 [{file,"couch_db_updater.erl"},{line,862}]},
                                {lists,map,2,[{file,"lists.erl"},{line,1224}]},
                                {lists,map,2,[{file,"lists.erl"},{line,1224}]},
                                {couch_db_updater,copy_docs,4,
                                 [{file,"couch_db_updater.erl"},{line,861}]},
                                {couch_db_updater,copy_compact,3,
                                 [{file,"couch_db_updater.erl"},{line,961}]},
                                {couch_db_updater,start_copy_compact,1,
                                 [{file,"couch_db_updater.erl"},{line,1004}]}]},
                              [{gen_server,terminate,6,
                                [{file,"gen_server.erl"},{line,744}]},
                               {proc_lib,init_p_do_apply,3,
                                [{file,"proc_lib.erl"},{line,239}]}]}},
                            {ancestors,[<0.1323.0>]},
                            {messages,[]},
                            {links,[<0.88.0>]},
                            {dictionary,[]},
                            {trap_exit,true},
                            {status,running},
                            {heap_size,987},
                            {stack_size,27},
                            {reductions,308}],
                           []]}}
   [Mon, 14 Mar 2022 02:55:56 GMT] [error] [<0.88.0>] Unexpected exit of 
database process <0.1326.0> [<<"dpl_job">>]: {function_clause,
                                                                                
       [{couch_db_updater,
                                                                                
         '-copy_docs/4-fun-3-',
                                                                                
         [not_found],
                                                                                
         [{file,
                                                                                
           "couch_db_updater.erl"},
                                                                                
          {line,
                                                                                
           862}]},
                                                                                
        {lists,
                                                                                
         map,
                                                                                
         2,
                                                                                
         [{file,
                                                                                
           "lists.erl"},
                                                                                
          {line,
                                                                                
           1224}]},
                                                                                
        {lists,
                                                                                
         map,
                                                                                
         2,
                                                                                
         [{file,
                                                                                
           "lists.erl"},
                                                                                
          {line,
                                                                                
           1224}]},
                                                                                
        {couch_db_updater,
                                                                                
         copy_docs,
                                                                                
         4,
                                                                                
         [{file,
                                                                                
           "couch_db_updater.erl"},
                                                                                
          {line,
                                                                                
           861}]},
                                                                                
        {couch_db_updater,
                                                                                
         copy_compact,
                                                                                
         3,
                                                                                
         [{file,
                                                                                
           "couch_db_updater.erl"},
                                                                                
          {line,
                                                                                
           961}]},
                                                                                
        {couch_db_updater,
                                                                                
         start_copy_compact,
                                                                                
         1,
                                                                                
         [{file,
                                                                                
           "couch_db_updater.erl"},
                                                                                
          {line,
                                                                                
           1004}]}]}
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to