aduchate commented on issue #5342:
URL: https://github.com/apache/couchdb/issues/5342#issuecomment-2504638349

   pid:
   
   `erlang:process_info(Pid, current_stacktrace).`
   
   ```
   ([email protected])1> 
erlang:process_info(<0.18820539.1>, current_stacktrace).
   {current_stacktrace,[{gen,do_call,4,
                             [{file,"gen.erl"},{line,241}]},
                        
{gen_server,call,3,[{file,"gen_server.erl"},{line,1218}]},
                        {couch_work_queue,dequeue,2,
                                          
[{file,"src/couch_work_queue.erl"},{line,50}]},
                        {couch_mrview_updater,map_docs,2,
                                              
[{file,"src/couch_mrview_updater.erl"},{line,154}]}]}
   ```
   
   `erlang:process_info(<0.18820539.1>).`
   
   ```
   [{current_function,{gen,do_call,4}},
    {initial_call,{erlang,apply,2}},
    {status,waiting},
    {message_queue_len,0},
    {links,[<0.1754697.1>]},
    {dictionary,[{task_status_update,{{0,0,0},500000}},
                 
{io_priority,{view_update,<<"shards/80000000-9fffffff/icure-ms-elsa-vancaster-cf8a1abf-ed"...>>,
                                           <<"_design/Message-DataOwner">>}},
                 {task_status_props,[{changes_done,42824},
                                     
{database,<<"shards/80000000-9fffffff/icure-ms-elsa-vancaster"...>>},
                                     
{design_document,<<"_design/Message-DataOwner">>},
                                     {indexer_pid,<<"<0.180092364.0>">>},
                                     {progress,13},
                                     {started_on,1732686977},
                                     {total_changes,324883},
                                     {type,indexer},
                                     {updated_on,1732687030}]}]},
    {trap_exit,false},
    {error_handler,error_handler},
    {priority,normal},
    {group_leader,<0.249.0>},
    {total_heap_size,1196281},
    {heap_size,196650},
    {stack_size,16},
    {reductions,12771499},
    {garbage_collection,[{max_heap_size,#{error_logger => 
true,include_shared_binaries => false,
                                          kill => true,size => 0}},
                         {min_bin_vheap_size,46422},
                         {min_heap_size,233},
                         {fullsweep_after,65535},
                         {minor_gcs,220}]},
    {suspending,[]}]
   ```
   
   indexer_pid:
   
   `erlang:process_info(<0.180092364.0>, current_stacktrace).`
   
   ```
   {current_stacktrace,[{gen_server,loop,7,
                                    [{file,"gen_server.erl"},{line,2250}]},
                        {proc_lib,init_p_do_apply,3,
                                  [{file,"proc_lib.erl"},{line,329}]}]}
   ```
   `erlang:process_info(<0.180092364.0>).`
   
   ```
   [{current_function,{gen_server,loop,7}},
    {initial_call,{proc_lib,init_p,5}},
    {status,waiting},
    {message_queue_len,0},
    {links,[<0.175818994.0>,<0.179769987.0>,<0.178322255.0>,
            <0.580.0>]},
    {dictionary,[{'$initial_call',{couch_index,init,1}},
                 
{io_priority,{view_update,<<"shards/80000000-9fffffff/icure-ms-elsa-vancaster-cf8a1abf-ed"...>>}},
                 {'$ancestors',[<0.180269918.0>]}]},
    {trap_exit,false},
    {error_handler,error_handler},
    {priority,normal},
    {group_leader,<0.249.0>},
    {total_heap_size,17730},
    {heap_size,6772},
    {stack_size,11},
    {reductions,156876},
    {garbage_collection,[{max_heap_size,#{error_logger => 
true,include_shared_binaries => false,
                                          kill => true,size => 0}},
                         {min_bin_vheap_size,46422},
                         {min_heap_size,233},
                         {fullsweep_after,65535},
                         {minor_gcs,144}]},
    {suspending,[]}]
   ```
   
   A stuck indexer never moves anymore nothing changes in the values once it is 
stuck
   
   The stuck indexers are completely random. After killing the stuck indexer, 
the index ends up building correctly.
   
   QuickJS scanner show no problem. The indexes used to build correctly with 
spidermonkey but in this current build, spidermonkey is broken so, I cannot 
check if the problem also arises with spidermonkey.
   
   I'll try building with otp 25 and let you know.
   
   Thanks for the support
   A.
   


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