You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by nickva <gi...@git.apache.org> on 2016/07/26 19:33:33 UTC

[GitHub] couchdb-couch-replicator pull request #43: Replication manager's rep_start_p...

GitHub user nickva opened a pull request:

    https://github.com/apache/couchdb-couch-replicator/pull/43

    Replication manager's rep_start_pids now contains only {Tag, Pid} items

    Previously the local change feed was added to rep_start_pids as Pid only. So if
    replication manager stopped and terminate/2 was called before that change
    feed died, then
    
    ```
    foreach(fun({_Tag, Pid}) -> ... end, [StartPids])
    ```
    
    would crash with a function clause error.
    
    Jira: COUCHDB-3082

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/couchdb-couch-replicator 3082-replication-manager-rep_start_pids-fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-couch-replicator/pull/43.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #43
    
----
commit 17cb967243b9b7111a331fea796976c53718dd7d
Author: Nick Vatamaniuc <va...@gmail.com>
Date:   2016-07-26T19:22:52Z

    Replication manager's rep_start_pids now contains only {Tag, Pid} items
    
    Previously the local change feed was added to rep_start_pids as Pid only. So if
    replication manager stopped and terminate/2 was called before that change
    feed died, then
    
    ```
    foreach(fun({_Tag, Pid}) -> ... end, [StartPids])
    ```
    
    would crash with a function clause error.
    
    Jira: COUCHDB-3082

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-couch-replicator pull request #43: Replication manager's rep_start_p...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/couchdb-couch-replicator/pull/43


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-couch-replicator issue #43: Replication manager's rep_start_pids now...

Posted by rnewson <gi...@git.apache.org>.
Github user rnewson commented on the issue:

    https://github.com/apache/couchdb-couch-replicator/pull/43
  
    +1 but please make two commits. 1) DRY the replicator value, 2) fix the bug


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-couch-replicator pull request #43: Replication manager's rep_start_p...

Posted by rnewson <gi...@git.apache.org>.
Github user rnewson commented on a diff in the pull request:

    https://github.com/apache/couchdb-couch-replicator/pull/43#discussion_r72321489
  
    --- Diff: src/couch_replicator_manager.erl ---
    @@ -182,7 +182,7 @@ init(_) ->
             scan_pid = ScanPid,
             max_retries = retries_value(
                 config:get("replicator", "max_replication_retry_count", "10")),
    -        rep_start_pids = [Pid],
    +        rep_start_pids = [{rep_start, Pid}],
    --- End diff --
    
    right idea but `Pid` here isn't a replication that's starting, it's the changes reader. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---