Skip to content

Commit d8b2bbb

Browse files
committed
fix(set-up): sleep so system dbs distributed
1 parent 411cd27 commit d8b2bbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

set-up-process.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ if [ $TASK_SLOT -eq 1 ]; then
1414
missing=`curl -X GET http://$COUCHDB_USER:$COUCHDB_PASSWORD@couchdb1:5984/_users | grep 'not_found'`
1515

1616
if [ "$missing" ]; then
17+
# Sleep so that when we create the databases, they will be distributed over all our nodes
18+
sleep 60
1719
curl -X PUT http://$COUCHDB_USER:$COUCHDB_PASSWORD@couchdb1:5984/_users
1820
curl -X PUT http://$COUCHDB_USER:$COUCHDB_PASSWORD@couchdb1:5984/_replicator
1921
curl -X PUT http://$COUCHDB_USER:$COUCHDB_PASSWORD@couchdb1:5984/_global_changes

0 commit comments

Comments
 (0)