couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (JIRA)" <>
Subject [jira] Commented: (COUCHDB-597) Replication tasks crash.
Date Tue, 15 Dec 2009 19:05:18 GMT


Paul Joseph Davis commented on COUCHDB-597:

I'm pretty sure that this is a message leaking from couch_ref_counter. The #Ref<...>
variable is the same type of response from a call to erlang:monitor(process, Pid). And couch_ref_counter.erl
stores refs like this with a tuple of {Ref, Count} which fits the message that's killing couch_task_status.
That said, I don't have any idea how such a message is leaking out of the ref counter. My
only guess is that there's a piece of code somewhere that's trying to catch exceptions and
strips a badmatch or other error making this look like a message that was sent instead of
an error propagation.

> Replication tasks crash.
> ------------------------
>                 Key: COUCHDB-597
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 0.11
>            Reporter: Robert Newson
> If I kick off 10 replication tasks in quick succession, occasionally one or two of the
replication tasks will die and not be resumed. It seems that the stat tracking is a little
buggy, and under stress can eventually cause a permanent failure of the supervised replication
> [Fri, 11 Dec 2009 19:00:08 GMT] [error] [<0.80.0>] {error_report,<0.30.0>,
>     {<0.80.0>,supervisor_report,
>      [{supervisor,{local,couch_rep_sup}},
>       {errorContext,shutdown_error},
>       {reason,killed},
>       {offender,
>           [{pid,<0.6700.11>},
>            {name,"fcbb13200a1618cf983b347f4d2c9835+create_target"},
>            {mfa,
>                {gen_server,start_link,
>                    [couch_rep,
>                     ["fcbb13200a1618cf983b347f4d2c9835",
>                      {[{<<"create_target">>,true},
>                        {<<"source">>,<<"http://node:5984/perf-p2">>},
>                        {<<"target">>,<<"perf-p2">>}]},
>                      {user_ctx,null,[<<"_admin">>]}],
>                     []]}},
>            {restart_type,temporary},
>            {shutdown,1},
>            {child_type,worker}]}]}}
> [Fri, 11 Dec 2009 19:00:08 GMT] [error] [emulator] Error in process <0.6705.11>
with exit value: {badarg,[{ets,insert,[stats_hit_table,{{couchdb,open_os_files},-1}]},{couch_stats_collector,decrement,1}]}

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

View raw message