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

[XDCR] No error message thrown when trying to set networkUsageLimit on a capi replication through REST

    XMLWordPrintable

Details

    • Untriaged
    • Yes

    Description

      When we try to set network bandwidth limit on a capi replication through REST api there is no error thrown. Even in the logs there is no errors:

      2017-05-29T07:17:59.745-07:00 INFO GOXDCR.AdminPort: doChangeReplicationSettingsRequest
      2017-05-29T07:17:59.745-07:00 INFO GOXDCR.AdminPort: Request params: replicationId=74b712c98e2a0a92568183b7b89fe89f/default/default
      2017-05-29T07:17:59.745-07:00 INFO GOXDCR.AdminPort: Request params: justValidate=false, inputSettings=map[bandwidth_limit:1]
      2017-05-29T07:17:59.745-07:00 INFO GOXDCR.ReplMgr: Update replication settings for 74b712c98e2a0a92568183b7b89fe89f/default/default, settings=map[bandwidth_limit:1]
      2017-05-29T07:17:59.749-07:00 INFO GOXDCR.ReplicationSpecChangeListener: metakvCallback called on listener ReplicationSpecChangeListener with path = /replicationSpec/74b712c98e2a0a92568183b7b89fe89f/default/default
      2017-05-29T07:17:59.750-07:00 INFO GOXDCR.ReplSpecSvc: ReplicationSpecServiceCallback called on path = /replicationSpec/74b712c98e2a0a92568183b7b89fe89f/default/default
      2017-05-29T07:17:59.750-07:00 INFO GOXDCR.ReplicationSpecChangeListener: specChangedCallback called on id = 74b712c98e2a0a92568183b7b89fe89f/default/default, oldSpec=&{74b712c98e2a0a92568183b7b89fe89f/default/default default 97199bc1cbdff466062e9c1e4e81bcba 74b712c98e2a0a92568183b7b89fe89f default 678bf61a09cf122cfff94b3d89a2c985 0xc42013e460 [131 108 0 0 0 1 104 2 109 0 0 0 32 99 53 52 53 98 98 53 100 56 54 56 100 54 57 49 49 99 51 49 52 56 48 55 101 101 54 102 56 57 99 102 54 104 2 97 38 110 5 0 91 169 160 210 14 106]}, newSpec=&{74b712c98e2a0a92568183b7b89fe89f/default/default default 97199bc1cbdff466062e9c1e4e81bcba 74b712c98e2a0a92568183b7b89fe89f default 678bf61a09cf122cfff94b3d89a2c985 0xc42013e5a0 [131 108 0 0 0 1 104 2 109 0 0 0 32 99 53 52 53 98 98 53 100 56 54 56 100 54 57 49 49 99 51 49 52 56 48 55 101 101 54 102 56 57 99 102 54 104 2 97 39 110 5 0 151 169 160 210 14 106]}
      2017-05-29T07:17:59.750-07:00 INFO GOXDCR.ReplicationSpecChangeListener: old spec settings=&{capi  true 60 500 2048 10 256 2 2 0 0 Info 1000 0 <nil>}
      2017-05-29T07:17:59.750-07:00 INFO GOXDCR.ReplicationSpecChangeListener: new spec settings=&{capi  true 60 500 2048 10 256 2 2 0 0 Info 1000 1 <nil>}
      2017-05-29T07:17:59.750-07:00 INFO GOXDCR.ReplicationSpecChangeListener: Updating pipeline 74b712c98e2a0a92568183b7b89fe89f/default/default with new settings=&{capi  true 60 500 2048 10 256 2 2 0 0 Info 1000 1 <nil>}
       old settings=&{capi  true 60 500 2048 10 256 2 2 0 0 Info 1000 0 <nil>}
      2017-05-29T07:17:59.750-07:00 INFO GOXDCR.CapiNozzle: capi_74b712c98e2a0a92568183b7b89fe89f/default/default_172.23.105.27:8092_0 updated optimistic replication threshold to 256
      2017-05-29T07:17:59.750-07:00 INFO GOXDCR.CapiNozzle: capi_74b712c98e2a0a92568183b7b89fe89f/default/default_172.23.105.27:8092_1 updated optimistic replication threshold to 256
      2017-05-29T07:17:59.750-07:00 INFO GOXDCR.ReplicationSpecChangeListener: Kept pipeline 74b712c98e2a0a92568183b7b89fe89f/default/default running since the changes to replication spec are not critical
      2017-05-29T07:17:59.753-07:00 INFO GOXDCR.ReplSpecSvc: Replication spec 74b712c98e2a0a92568183b7b89fe89f/default/default has been updated, rev=[131 108 0 0 0 1 104 2 109 0 0 0 32 99 53 52 53 98 98 53 100 56 54 56 100 54 57 49 49 99 51 49 52 56 48 55 101 101 54 102 56 57 99 102 54 104 2 97 39 110 5 0 151 169 160 210 14 106]
      2017-05-29T07:17:59.753-07:00 INFO GOXDCR.ReplMgr: Updated replication settings for replication 74b712c98e2a0a92568183b7b89fe89f/default/default
      2017-05-29T07:17:59.753-07:00 INFO GOXDCR.ReplMgr: Done with replication settings auditing for replication 74b712c98e2a0a92568183b7b89fe89f/default/default
      2017-05-29T07:17:59.753-07:00 INFO GOXDCR.AdminPort: Done with doChangeReplicationSettingsRequest
      2017-05-29T07:17:59.753-07:00 INFO GOXDCR.ReplMgr: Start constructUpdateDefaultReplicationSettingsEvent....
      

      Though BandwithThrottlerSvc is not enabled as expected and there is no bandwidth usage limit on the replication, there needs to be an error to inform user what happened - logs:

      https://s3.amazonaws.com/bugdb/jira/may29/collectinfo-2017-05-29T142912-ns_1%40172.23.106.251.zip
      https://s3.amazonaws.com/bugdb/jira/may29/collectinfo-2017-05-29T142912-ns_1%40172.23.107.161.zip

      Attachments

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

        Activity

          People

            yu Yu Sui (Inactive)
            arunkumar Arunkumar Senthilnathan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty