Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
Steps to reproduce:
- create two DBs on the cluster IF
- add a replication to _replicator on the cluster IF
- results in error
[root@localhost couchdb]# curl -X PUT 'http://localhost:15984/dbsrc' {"ok":true} [root@localhost couchdb]# curl -X PUT 'http://localhost:15984/dbtgt' {"ok":true} [root@localhost couchdb]# curl -X PUT 'http://localhost:15984/dbsrc/doc1' -d '{}' {"ok":true,"id":"doc1","rev":"1-967a00dff5e02add41819138abb3284d"} [root@localhost couchdb]# curl -X PUT 'http://localhost:15984/_replicator/src2tgt' -d '{"source": "dbsrc", "target": "dbtgt"}' {"ok":true,"id":"src2tgt","rev":"1-3912eb1b7f731cd4321c72ad10e768b3"} [root@localhost couchdb]# curl -X GET 'http://localhost:15984/_replicator/src2tgt' {"_id":"src2tgt","_rev":"2-08df1d90f50be16d573f30663605597e","source":"dbsrc","target":"dbtgt","owner":null,"_replication_state":"error","_replication_state_time":"2015-11-05T22:58:58+01:00","_replication_state_reason":"{db_not_found,<<\"could not open dbsrc\">>}","_replication_id":"eb0d31c42148e499cd84fe2f36100765"}
Can also be reproduced with test/javascript/tests/replicator_db_bad_rep_id.js (and poss. others - see testing PR)
Details from the log:
2015-11-05 22:59:03.566 [error] node1@127.0.0.1 <0.356.0> Error in replication `eb0d31c42148e499cd84fe2f36100765` (triggered by document `src2tgt`): {db_not_found,<<"could not open dbsrc">>} Restarting replication in 10 seconds. 2015-11-05 22:59:13.568 [notice] node1@127.0.0.1 <0.4338.0> starting new replication `eb0d31c42148e499cd84fe2f36100765` at <0.4509.0> (`dbsrc` -> `dbtgt`) 2015-11-05 22:59:13.568 [debug] Undefined <0.400.0> Supervisor couch_replicator_job_sup started gen_server:start_link(couch_replicator, {rep,{"eb0d31c42148e499cd84fe2f36100765",[]},<<"dbsrc">>,<<"dbtgt">>,[{checkpoint_interval,5000},...],...}, [{timeout,30000}]) at pid <0.4509.0> 2015-11-05 22:59:13.569 [error] node1@127.0.0.1 <0.4510.0> Could not open file /root/couch/couchdb/dev/lib/node1/data/dbsrc.couch: no such file or directory 2015-11-05 22:59:13.570 [info] node1@127.0.0.1 <0.236.0> open_result error {not_found,no_db_file} for dbsrc
Attachments
Issue Links
- duplicates
-
COUCHDB-2869 Replication doc goes for local, not clustered database
-
- Closed
-