[MB-6381] We need clearly defined, clean and forward-compatible replications API Created: 22/Aug/12  Updated: 29/Aug/12  Resolved: 28/Aug/12

Status: Resolved
Project: Couchbase Server
Component/s: cross-datacenter-replication, ns_server, RESTful-APIs
Affects Version/s: None
Fix Version/s: 2.0
Security Level: Public

Type: Bug Priority: Blocker
Reporter: Aleksey Kondratenko Assignee: Aleksey Kondratenko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

We currently have separate and advertised call for creating replications.

But we rely on some already broken view to get replications with their status and we rely on explicit DELETE using couch-style call.

We need to do better.

We have tasks API that will provide us status potentially including error messages.

We need a way to list defined replications (perhaps tasks can do that too, why not, given replications are supposed to be always active). And we need a clear API to DELETE them.

Comment by Junyi Xie (Inactive) [ 22/Aug/12 ]
Mark it current sprint since it is a blocker.
Comment by Aleksey Kondratenko [ 27/Aug/12 ]
Will merge this as soon as possible, but will keep old 'API' to avoid breaking testrunner while beta branch is tested.
Comment by Aleksey Kondratenko [ 28/Aug/12 ]


Comment by Thuan Nguyen [ 28/Aug/12 ]
Integrated in github-ns-server-2-0 #456 (See [http://qa.hq.northscale.net/job/github-ns-server-2-0/456/])
    MB-6381: expose xdcr replications via tasks API (Revision 7b1019eac277c03f8e25e30246eda0b8e96f8e55)
MB-6381: implemented replication cancellation endpoint (Revision a6a856149e72ad3755d8f56aad5c61a800ee2839)

     Result = SUCCESS
Aliaksey Kandratsenka :
Files :
* src/ns_heart.erl
* src/ns_doctor.erl
* src/xdc_replication_sup.erl

Aliaksey Kandratsenka :
Files :
* src/xdc_rdoc_replication_srv.erl
* src/menelaus_web.erl
Generated at Sat Nov 22 08:17:20 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.