You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Nick Vatamaniuc (JIRA)" <ji...@apache.org> on 2016/08/03 02:38:20 UTC

[jira] [Resolved] (COUCHDB-3082) Replicator manager crashes in terminate/2 if initial change feed spawned for _replicate hasn't finished

     [ https://issues.apache.org/jira/browse/COUCHDB-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Vatamaniuc resolved COUCHDB-3082.
--------------------------------------
    Resolution: Fixed

> Replicator manager crashes in terminate/2 if initial change feed spawned for _replicate hasn't finished
> -------------------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-3082
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3082
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: Nick Vatamaniuc
>
> During init we spawn a change feed for the _replicator db and assign rep_start_pids = [Pid]. However the shape of rep_start_pids should be {Tag, Pid}. In terminate/2 we clean up by doing:
> {code}
> lists:foreach(
> fun({_Tag, Pid}) ->
> ...
> [{scanner, ScanPid} | StartPids]),
> {code}
>  
> Which ends up crashing with a function clause because we expect foreach function to get a tuple of 2 items.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)