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

[XDCR] Explicit mapping should not be available in CE

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      As per https://docs.google.com/spreadsheets/d/1waBNOMPosMxKUr7q4GOzCRdMlEPoC1QIpgQHRN_ueeM/edit#gid=1577372453, Collection and scope level XDCR (explicit mapping) is expected to be available in EE only - currently it is not restricted and is available in CE via all modes - UI, REST and CLI - this should be restricted

      7.0.0-3644:

      CLI:

      [root@node1-mad-hatter-testing-centos7 bin]# ./couchbase-cli xdcr-replicate -c 10.112.194.101 -u Administrator -p password --settings --xdcr-replicator c5d76bf35b1448a0d4f1bb4b7be466a7/travel-sample/default --collection-explicit-mappings 1
      SUCCESS: XDCR replicator settings updated
      [root@node1-mad-hatter-testing-centos7 bin]# ./couchbase-cli xdcr-replicate -c 10.112.194.101 -u Administrator -p password --settings --xdcr-replicator c5d76bf35b1448a0d4f1bb4b7be466a7/travel-sample/default --collection-mapping-rules '{"s1.c1":"s1.c1"}'
      SUCCESS: XDCR replicator settings updated
      [root@node1-mad-hatter-testing-centos7 bin]#
      

      UI - attaching screenshots

      REST:

      [root@node1-mad-hatter-testing-centos7 bin]# curl -X POST -u Administrator:password http://10.112.194.101:8091/settings/replications/c5d76bf35b1448a0d4f1bb4b7be466a7%2Ftravel-sample%2Fdefault -d collectionsExplicitMapping=true
      {"checkpointInterval":600,"colMappingRules":{"s1.c1":"s1.c1"},"collectionsExplicitMapping":true,"collectionsMigrationMode":false,"collectionsMirroringMode":false,"collectionsOSOMode":false,"compressionType":"None","desiredLatency":50,"docBatchSizeKb":2048,"failureRestartInterval":10,"filterBypassExpiry":false,"filterDeletion":false,"filterExpiration":false,"filterExpression":"","logLevel":"Info","mergeFunctionMapping":{},"networkUsageLimit":0,"optimisticReplicationThreshold":256,"pauseRequested":false,"priority":"High","sourceNozzlePerNode":2,"statsInterval":1000,"targetNozzlePerNode":2,"type":"xmem","workerBatchSize":500}[root@node1-mad-hatter-testing-centos7 bin]#
      [root@node1-mad-hatter-testing-centos7 bin]#
      [root@node1-mad-hatter-testing-centos7 bin]#
      [root@node1-mad-hatter-testing-centos7 bin]# curl -X POST -u Administrator:password http://10.112.194.101:8091/settings/replications/c5d76bf35b1448a0d4f1bb4b7be466a7%2Ftravel-sample%2Fdefault -d colMappingRules='{"s1.c1":"s1.c1"}'
      {"checkpointInterval":600,"colMappingRules":{"s1.c1":"s1.c1"},"collectionsExplicitMapping":true,"collectionsMigrationMode":false,"collectionsMirroringMode":false,"collectionsOSOMode":false,"compressionType":"None","desiredLatency":50,"docBatchSizeKb":2048,"failureRestartInterval":10,"filterBypassExpiry":false,"filterDeletion":false,"filterExpiration":false,"filterExpression":"","logLevel":"Info","mergeFunctionMapping":{},"networkUsageLimit":0,"optimisticReplicationThreshold":256,"pauseRequested":false,"priority":"High","sourceNozzlePerNode":2,"statsInterval":1000,"targetNozzlePerNode":2,"type":"xmem","workerBatchSize":500}[root@node1-mad-hatter-testing-centos7 bin]#
      [root@node1-mad-hatter-testing-centos7 bin]#
      [root@node1-mad-hatter-testing-centos7 bin]#
      

      Attachments

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

        Activity

          People

            arunkumar Arunkumar Senthilnathan (Inactive)
            arunkumar Arunkumar Senthilnathan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty