You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/01/17 15:21:05 UTC

[GitHub] cbickel commented on a change in pull request #4214: Avoid Database Replicator Failures

cbickel commented on a change in pull request #4214: Avoid Database Replicator Failures
URL: https://github.com/apache/incubator-openwhisk/pull/4214#discussion_r248713105
 
 

 ##########
 File path: tools/db/replicateDbs.py
 ##########
 @@ -79,6 +79,11 @@ def isExcluded(dbName):
         filterDesignDocument = sourceDb[db].get("_design/%s" % filterName)
         if not args.continuous and filterDesignDocument:
             replicateDesignDocument["filter"] = "%s/withoutDeletedAndDesignDocuments" % filterName
+
+        existingDoc = replicator.get(backupDb)
 
 Review comment:
   My suggestion would be not to update the script because of the test failures.
   As this is a script that could be used in production environments, my opinion is, that the script should fail if the replication already exists (maybe with different values) otherwise something could be changed unexpectedly. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services