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

XDCR sends getMeta requests for documents which have been already replicated

    XMLWordPrintable

Details

    • Untriaged
    • Centos 64-bit
    • Unknown

    Description

      To avoid issues with automation I manually installed and configured two servers. I used build 4.5.0-2601 (Waston GA).

      Then I created buckets and enabled XDC replication from one node to another.

      I made only one change to the default XDCR settings, namely optimistic replication threshold was set to 0.

      curl -s "http://Administrator:password@172.23.96.100:8091/settings/replications/def1b4c45b751221541837cb7f5e0e94%2Fbucket-1%2Fbucket-1" | python -mjson.tool
      {
          "checkpointInterval": 1800,
          "docBatchSizeKb": 2048,
          "failureRestartInterval": 10,
          "filterExpression": "",
          "logLevel": "Info",
          "optimisticReplicationThreshold": 0,
          "pauseRequested": false,
          "sourceNozzlePerNode": 2,
          "statsInterval": 1000,
          "targetNozzlePerNode": 2,
          "type": "xmem",
          "workerBatchSize": 500
      }
      

      ReplicationManager 2016-07-27T17:00:15.493-07:00 [INFO] Creating replication spec - justValidate=false, sourceBucket=bucket-1, targetCluster=myCluster, targetBucket=bucket-1, settings=map[doc_batch_size_kb:2048 checkpoint_interval:1800 log_level:Info optimistic_replication_threshold:0 worker_batch_size:500 replication_type:xmem source_nozzle_per_node:2 stats_interval:1000 target_nozzle_per_node:2 failure_restart_interval:10]
       settings = map[active:true checkpoint_interval:1800 doc_batch_size_kb:2048 failure_restart_interval:10 source_nozzle_per_node:2 target_nozzle_per_node:2 replication_type:xmem worker_batch_size:500 optimistic_replication_threshold:0 log_level:Info stats_interval:1000 filter_expression:]
      

      Once replication was enabled, I started adding documents to the source node. Surprisingly, I didn't see any getMeta requests.

      cbstats confirms my observations:

      # /opt/couchbase/bin/cbstats -b bucket-1 -p password 127.0.0.1:11210  all | grep 'get_meta\|set_meta'
       ep_num_ops_get_meta:                         0
       ep_num_ops_get_meta_on_set_meta:             0
       ep_num_ops_set_meta:                         83887038
       ep_num_ops_set_meta_res_fail:                29961
      

      I don't think it's expected.

      Attachments

        1. collectinfo-2016-07-28T180005-n_1@127.0.0.1.zip
          1.99 MB
        2. collectinfo-2016-07-28T180014-n_0@127.0.0.1.zip
          2.45 MB
        3. dest_debug.zip
          2.79 MB
        4. dest.zip
          3.31 MB
        5. destination.png
          destination.png
          1.87 MB
        6. mb20291.png
          mb20291.png
          1.65 MB
        7. repl_settings.png
          repl_settings.png
          244 kB
        8. source_debug.zip
          20.65 MB
        9. source.png
          source.png
          2.15 MB
        10. source.zip
          3.56 MB

        Issue Links

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

          Activity

            People

              sriram Sriram Ganesan (Inactive)
              pavelpaulau Pavel Paulau (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty