Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-6381

We need clearly defined, clean and forward-compatible replications API

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: ns_server, RESTful-APIs, XDCR
    • Security Level: Public
    • Labels:
      None

      Description

      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.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        thuan Thuan Nguyen added a comment -

        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
        Show
        thuan Thuan Nguyen added a comment - 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
        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - http://review.couchbase.org/#/c/20149/ http://review.couchbase.org/#/c/20156/ http://review.couchbase.org/#/c/20157/
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Will merge this as soon as possible, but will keep old 'API' to avoid breaking testrunner while beta branch is tested.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Will merge this as soon as possible, but will keep old 'API' to avoid breaking testrunner while beta branch is tested.
        Hide
        junyi Junyi Xie (Inactive) added a comment -

        Mark it current sprint since it is a blocker.

        Show
        junyi Junyi Xie (Inactive) added a comment - Mark it current sprint since it is a blocker.

          People

          • Assignee:
            alkondratenko Aleksey Kondratenko (Inactive)
            Reporter:
            alkondratenko Aleksey Kondratenko (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes