Skip to content

Commit 9305c06

Browse files
author
Tim Hinderliter
committed
updated comments for fix to CHEF-1788
1 parent eee99ac commit 9305c06

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

‎features/support/couchdb_replicate.rb‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,15 @@ def replicate_dbs(replication_specs, delete_source_dbs = false)
7878
end
7979

8080
# Sometimes Couch returns a '412 Precondition Failed' when creating a database,
81-
# via a PUT to its URL. This condition disappears if you try again. So here we
82-
# try up to 10 times if PreconditionFailed occurs. See
83-
# http://tickets.opscode.com/browse/CHEF-1788 and
84-
# http://tickets.opscode.com/browse/CHEF-1764.
81+
# via a PUT to its URL, as the DELETE from the previous step has not yet finished.
82+
# This condition disappears if you try again. So here we try up to 10 times if
83+
# PreconditionFailed occurs. See
84+
# http://tickets.opscode.com/browse/CHEF-1788 and
85+
# http://tickets.opscode.com/browse/CHEF-1764.
86+
#
87+
# According to https://issues.apache.org/jira/browse/COUCHDB-449, setting the
88+
# 'X-Couch-Full-Commit: true' header on the DELETE should work around this issue,
89+
# but it does not.
8590
db_created = nil
8691
max_tries = 10
8792
num_tries = 1

0 commit comments

Comments
 (0)