2017-06-22 4 views
0

J'ai une installation CouchDB 2.0, en cours d'exécution sur Ubuntu 16.04, seul nœud. Un aspect particulier de ma demande en écriture lourde charge, mais je veux lit besoin d'être rapide, donc je suis à la recherche d'utiliser update_notification pour reconstruire les index tous les n écrit.erreurs lorsqu'un document de conception est édité et un update_notification est réglé

J'ai créé une petite application pour gérer NodeJS, mais a constaté que chaque fois qu'un document de conception a été modifiée, mon serveur se renverserait. Cela se révéla être parce que CouchDB a été mise à feu des centaines de copies de l'auditeur de mise à jour, ce qui semblait être à cause des accidents signalés dans couch.log. Chaque fois qu'il y avait un crash, un nouvel écouteur de mise à jour était créé, mais l'ancien script ne se terminait pas.

Je pared cela à un cas simple, où le update_notification ne fait rien clapoteuses mais enregistrer les modifications qu'il reçoit de STDIN:

updates.bash:

#!/bin/bash 
while read -r line 
do 
    echo "$line" >> /home/www/logs/updates.log 
done 

local.ini:

[update_notification] 
updates=/home/www/updates.bash 

j'attendre à voir updates.log remplir des notifications comme ...

{"type":"updated","db":"transactions"}  
{"type":"ddoc_updated","db":"transactions","id":"_design/temp"} 

... et c'est ce qu'on voit sur CouchDB 1.6.1. Mais sur CouchDB 2.0, je vois mon couch.log rempli de centaines de rapports d'erreur, et mon script de mise à jour a été rediffusé à plusieurs reprises.

[error] 2017-06-22T12:40:06.924056Z [email protected] <0.3061.0> -------- CRASH REPORT Process (<0.3061.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [{'$couch_event',<<"shards/e0000000-ffffffff/transac...">>,...}], links: [<0.184.0>,<0.3062.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 182 
[error] 2017-06-22T12:40:06.924572Z [email protected] <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3061.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated 
[error] 2017-06-22T12:40:07.007824Z [email protected] <0.3128.0> -------- gen_server <0.3128.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) 
last msg: {'$couch_event',<<"shards/00000000-1fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}} 
    state: <0.3129.0> 
[error] 2017-06-22T12:40:07.008373Z [email protected] <0.3128.0> -------- CRASH REPORT Process (<0.3128.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.184.0>,<0.3129.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180 
[error] 2017-06-22T12:40:07.009436Z [email protected] <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3128.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated 
[error] 2017-06-22T12:40:07.073859Z [email protected] <0.3131.0> -------- gen_server <0.3131.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) 
last msg: {'$couch_event',<<"shards/a0000000-bfffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}} 
    state: <0.3132.0> 
[error] 2017-06-22T12:40:07.074561Z [email protected] <0.3131.0> -------- CRASH REPORT Process (<0.3131.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.184.0>,<0.3132.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180 
[error] 2017-06-22T12:40:07.077530Z [email protected] <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3131.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated 
[error] 2017-06-22T12:40:07.188390Z [email protected] <0.3134.0> -------- gen_server <0.3134.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) 
last msg: {'$couch_event',<<"shards/c0000000-dfffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}} 
    state: <0.3135.0> 
[error] 2017-06-22T12:40:07.188829Z [email protected] <0.3134.0> -------- CRASH REPORT Process (<0.3134.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.184.0>,<0.3135.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180 
[error] 2017-06-22T12:40:07.189149Z [email protected] <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3134.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated 
[error] 2017-06-22T12:40:07.330580Z [email protected] <0.3153.0> -------- gen_server <0.3153.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) 
last msg: {'$couch_event',<<"shards/40000000-5fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}} 
    state: <0.3154.0> 
[error] 2017-06-22T12:40:07.330924Z [email protected] <0.3153.0> -------- CRASH REPORT Process (<0.3153.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.184.0>,<0.3154.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180 
[error] 2017-06-22T12:40:07.331223Z [email protected] <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3153.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated 
[error] 2017-06-22T12:40:07.331364Z [email protected] <0.184.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3153.0> exit with reason reached_max_restart_intensity in context shutdown 
[error] 2017-06-22T12:40:07.331476Z [email protected] <0.181.0> -------- Supervisor couch_event_sup2 had child couch_event_os_sup started with couch_event_os_sup:start_link() at <0.184.0> exit with reason shutdown in context child_terminated 
[error] 2017-06-22T12:40:07.356958Z [email protected] <0.3158.0> -------- gen_server <0.3158.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) 
last msg: {'$couch_event',<<"shards/80000000-9fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}} 
    state: <0.3159.0> 
[error] 2017-06-22T12:40:07.364351Z [email protected] <0.3158.0> -------- CRASH REPORT Process (<0.3158.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3159.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180 
[error] 2017-06-22T12:40:07.369489Z [email protected] <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3158.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated 
[error] 2017-06-22T12:40:07.382849Z [email protected] <0.3175.0> -------- gen_server <0.3175.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) 
last msg: {'$couch_event',<<"shards/60000000-7fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}} 
    state: <0.3176.0> 
[error] 2017-06-22T12:40:07.384947Z [email protected] <0.3175.0> -------- CRASH REPORT Process (<0.3175.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3176.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180 
[error] 2017-06-22T12:40:07.386137Z [email protected] <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3175.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated 
[error] 2017-06-22T12:40:11.992126Z [email protected] <0.3179.0> -------- gen_server <0.3179.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) 
last msg: {'$couch_event',<<"shards/e0000000-ffffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}} 
    state: <0.3180.0> 
[error] 2017-06-22T12:40:11.992790Z [email protected] <0.3179.0> -------- CRASH REPORT Process (<0.3179.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3180.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180 
[error] 2017-06-22T12:40:11.993045Z [email protected] <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3179.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated 
[info] 2017-06-22T12:40:12.264805Z [email protected] <0.2873.0> -------- OS Process #Port<0.7740> Log :: function raised exception (new TypeError("doc.meta is undefined", "undefined", 14)) with doc._id 4d1a7b83e5bd85296941dd7ac19e13b6 
[error] 2017-06-22T12:40:12.333125Z [email protected] <0.3257.0> -------- gen_server <0.3257.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) 
last msg: {'$couch_event',<<"shards/00000000-1fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}} 
    state: <0.3258.0> 
[error] 2017-06-22T12:40:12.335469Z cou[email protected] <0.3257.0> -------- CRASH REPORT Process (<0.3257.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3258.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180 
[error] 2017-06-22T12:40:12.338476Z [email protected] <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3257.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated 
[error] 2017-06-22T12:40:12.588788Z [email protected] <0.3260.0> -------- gen_server <0.3260.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) 
last msg: {'$couch_event',<<"shards/a0000000-bfffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}} 
    state: <0.3261.0> 
[error] 2017-06-22T12:40:12.589696Z [email protected] <0.3260.0> -------- CRASH REPORT Process (<0.3260.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3261.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180 
[error] 2017-06-22T12:40:12.590014Z [email protected] <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3260.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated 
[error] 2017-06-22T12:40:12.607826Z [email protected] <0.3263.0> -------- gen_server <0.3263.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) 
last msg: {'$couch_event',<<"shards/60000000-7fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}} 
    state: <0.3264.0> 
[error] 2017-06-22T12:40:12.612208Z [email protected] <0.3263.0> -------- CRASH REPORT Process (<0.3263.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [{'$couch_event',<<"shards/20000000-3fffffff/transac...">>,...}], links: [<0.3156.0>,<0.3264.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 182 
[error] 2017-06-22T12:40:12.614816Z [email protected] <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3263.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated 
[error] 2017-06-22T12:40:12.766033Z [email protected] <0.3266.0> -------- gen_server <0.3266.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) 
last msg: {'$couch_event',<<"shards/c0000000-dfffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}} 
    state: <0.3267.0> 
[error] 2017-06-22T12:40:12.766409Z [email protected] <0.3266.0> -------- CRASH REPORT Process (<0.3266.0>) with 1 neighbors exited with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_event_os_listener,init,['Argument__1']}, ancestors: [couch_event_os_sup,couch_event_sup2,<0.180.0>], messages: [], links: [<0.3156.0>,<0.3267.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 180 
[error] 2017-06-22T12:40:12.770029Z [email protected] <0.3156.0> -------- Supervisor couch_event_os_sup had child "updates" started with couch_event_os_listener:start_link("/home/www/updates.bash") at <0.3266.0> exit with reason bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) in context child_terminated 
[error] 2017-06-22T12:40:12.809470Z [email protected] <0.3269.0> -------- gen_server <0.3269.0> terminated with reason: bad argument in call to erlang:atom_to_list({index_commit,<<"_design/temp">>}) at couch_event_os_listener:handle_info/2(line:61) <= gen_server:try_dispatch/4(line:615) <= gen_server:handle_msg/5(line:681) <= proc_lib:init_p_do_apply/3(line:240) 
last msg: {'$couch_event',<<"shards/40000000-5fffffff/transactions.1491989851">>,{index_commit,<<"_design/temp">>}} 
    state: <0.3270.0> 

Je devine que je l'ai fait quelques hypothèses pauvres sur la façon dont update_notification œuvres, mais pour la vie de moi, je ne sais pas ce que cela pourrait être? C'est aussi un problème difficile à déboguer, car les erreurs sont quelque peu opaques et même le script le plus simple que je puisse trouver présente toujours le comportement.

Est-ce que quelqu'un sait ce que je fais mal ici?

Répondre