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

Post brokenMapping to replicationStatus for UI to digest

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 7.0.0
    • Cheshire-Cat
    • XDCR
    • None

    Description

      In 7.0, UI will be able to display collections mapping status. Will need to post the full brokenMapping information to replicationStatus for UI to consume.

      The broken map will be embedded as part of the (pools/default/replicationInfos) REST endpoint, under a key of "BrokenCollectionMapping"

      When there is a broken map for a particular pipeline, it will be listed as key -> value of:
      key - a single source namespace (ScopeName:CollectionName) or a single filter expression for collections migration replication
      Value - an array of target namespaces (ScopeName:CollectionName)

      neil.huang@NeilsMacbookPro:~/source/couchbase/ns_server$ curl -X GET -u Administrator:wewewe http://127.0.0.1:13000/pools/default/replicationInfos
      [{"Id":"d913d18ad41da1e0a6269317f0fa5eeb/B1/B2","StatsMap":{"CurrentTime":1600882426690042000,"add_docs_written":0,"bandwidth_usage":0,"changes_left":0,"data_merged":0,"data_replicated":0,"datapool_failed_gets":0,"dcp_datach_length":0,"dcp_dispatch_time":6,"deletion_docs_written":0,"deletion_failed_cr_source":0,"deletion_filtered":0,"deletion_received_from_dcp":0,"docs_checked":0,"docs_cloned":0,"docs_failed_cr_source":0,"docs_filtered":0,"docs_merged":0,"docs_opt_repd":0,"docs_processed":17168,"docs_received_from_dcp":10000,"docs_rep_queue":0,"docs_unable_to_filter":0,"docs_written":0,"expiry_docs_merged":0,"expiry_docs_written":0,"expiry_failed_cr_source":0,"expiry_filtered":0,"expiry_received_from_dcp":0,"expiry_stripped":0,"num_checkpoints":0,"num_failedckpts":0,"rate_doc_checks":0,"rate_doc_opt_repd":0,"rate_received_from_dcp":0,"rate_replicated":0,"resp_wait_time":0,"set_docs_written":0,"set_failed_cr_source":0,"set_filtered":0,"set_received_from_dcp":10000,"size_rep_queue":0,"throttle_latency":0,"throughput_throttle_latency":0,"time_committing":0,"wtavg_docs_latency":0,"wtavg_get_doc_latency":0,"wtavg_merge_latency":0,"wtavg_meta_latency":0},"BrokenCollectionMapping":{"S1:col1":["S1:col1"]},"ErrorList":[]}]
      

      When there is no broken map, then the value will be empty:

      neil.huang@NeilsMacbookPro:~/source/couchbase/ns_server$ curl -X GET -u Administrator:wewewe http://127.0.0.1:13000/pools/default/replicationInfos
      [{"Id":"5d4351d1155292404543419744fb2a11/B1/B2","StatsMap":{"CurrentTime":1600882852624212000,"add_docs_written":0,"bandwidth_usage":0,"changes_left":0,"data_merged":0,"data_replicated":1339502,"datapool_failed_gets":0,"dcp_datach_length":0,"dcp_dispatch_time":11,"deletion_docs_written":0,"deletion_failed_cr_source":0,"deletion_filtered":0,"deletion_received_from_dcp":0,"docs_checked":1744,"docs_cloned":0,"docs_failed_cr_source":0,"docs_filtered":0,"docs_merged":0,"docs_opt_repd":10000,"docs_processed":27168,"docs_received_from_dcp":20000,"docs_rep_queue":0,"docs_unable_to_filter":0,"docs_written":10000,"expiry_docs_merged":0,"expiry_docs_written":0,"expiry_failed_cr_source":0,"expiry_filtered":0,"expiry_received_from_dcp":0,"expiry_stripped":0,"num_checkpoints":0,"num_failedckpts":0,"rate_doc_checks":346,"rate_doc_opt_repd":0,"rate_received_from_dcp":0,"rate_replicated":0,"resp_wait_time":5,"set_docs_written":10000,"set_failed_cr_source":0,"set_filtered":0,"set_received_from_dcp":20000,"size_rep_queue":0,"throttle_latency":0,"throughput_throttle_latency":0,"time_committing":0,"wtavg_docs_latency":46,"wtavg_get_doc_latency":0,"wtavg_merge_latency":0,"wtavg_meta_latency":0},"BrokenCollectionMapping":{},"ErrorList":[]}]
      

      Attachments

        Issue Links

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

          Activity

            People

              neil.huang Neil Huang
              neil.huang Neil Huang
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty