replication broken in couchdb 1.0.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
couchdb (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
http://
and in couchdb 1.0.1 replication is broken.
Reproduce:
#create dirs and copy configs
$ mkdir -p couch1/db couch2/db
$ cp /etc/couchdb/*.ini couch1/
$ cp /etc/couchdb/*.ini couch2/
#change "[couchdb]
#cnange "[httpd].port = 5984" "[ssl].port = 6984"
$ nano couch1/default.ini
#change "[couchdb]
#change "[httpd].port = 5985" "[ssl].port = 6985"
$ nano couch2/default.ini
# add "[admins].admin = pass"
$ nano couch1/local.ini
$ nano couch2/local.ini
#run two instance couchdb
$ cd couch1
$ /usr/bin/couchdb -a ./default.ini -a ./local.ini -b -r 0 -p ./couchdb.pid -o /dev/null -e /dev/null -R &
$ cd ..
$ cd couch2
$ /usr/bin/couchdb -a ./default.ini -a ./local.ini -b -r 0 -p ./couchdb.pid -o /dev/null -e /dev/null -R &
$ cd ..
#create database
$ curl -H "Content-Type: application/json" -X PUT http://
#start replication
$ curl -H "Content-Type: application/json" -X POST http://
#add document
$ curl -H "Content-Type: application/json" -X PUT http://
# get jsawk
$ wget https:/
$ chmod +x jsawk
#create simple bash
$ nano test.sh
#!/usr/bin/env bash
host="http://
db="testdb"
doc="sampledoc"
curl="curl -s -H \"Content-Type: application/json\" -X "
cget="GET ${host}
cput="PUT ${host}
akey="\
for ((cv=1; cv <= 100000 ; cv++))
do
rev="\"`$cget | ./jsawk 'return this._rev'`\""
eval $curl $cput "'{""\"
done
#run test.sh
$ test.sh
#run new terminal window and look state:
$ watch -n0 'curl -s http://
Thanks for the detailed report, RNZ. I have been experiencing the replication issue between CouchDB 1.1.0 and Ubuntu's CouchDB (1.0.1) and was wondering if anyone else had the same problem. According to your report replication is even broken between instances of Ubuntu's CouchDB. Suck!
Packaging CouchDB 1.1.0 is important (I've been trying to do that using Debian Sid's source package) but should be in a separate issue.