You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Sebastian Rothbucher (JIRA)" <ji...@apache.org> on 2015/11/05 23:05:27 UTC
[jira] [Created] (COUCHDB-2869) Replication doc goes for local, not
clustered database
Sebastian Rothbucher created COUCHDB-2869:
---------------------------------------------
Summary: Replication doc goes for local, not clustered database
Key: COUCHDB-2869
URL: https://issues.apache.org/jira/browse/COUCHDB-2869
Project: CouchDB
Issue Type: Bug
Reporter: Sebastian Rothbucher
Steps to reproduce:
- create two DBs on the cluster IF
- add a replication to _replicator on the cluster IF
- results in error
{noformat}
[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"}
{noformat}
Can also be reproduced with test/javascript/tests/replicator_db_bad_rep_id.js (and poss. others - see testing PR)
Details from the log:
{noformat}
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
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)