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

XDCR is logging incorrect audit log msg

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • No

    Description

      In a CBSE, the log shows:

      2020-09-15T18:41:17.498-07:00 INFO GOXDCR.AdminPort: Done with doChangeReplicationSettingsRequest
      2020-09-15T18:41:17.498-07:00 INFO GOXDCR.ReplMgr: Start constructUpdateDefaultReplicationSettingsEvent....
      

      This is because XDCR is raising a updateDefaultReplication audit event for a regular replication update event.

      func writeUpdateReplicationSettingsEvent(spec *metadata.ReplicationSpecification, changedSettingsMap *metadata.ReplicationSettingsMap, realUserId *service_def.RealUserId, localRemoteIPs *service_def.LocalRemoteIPs) {
      	replicationSpecificFields, err := constructReplicationSpecificFieldsFromSpec(spec)
      	if err == nil {
      		var updateDefaultReplicationSettingsEvent *service_def.UpdateDefaultReplicationSettingsEvent
      		updateDefaultReplicationSettingsEvent, err = constructUpdateDefaultReplicationSettingsEvent(changedSettingsMap, realUserId, localRemoteIPs)
      		if err == nil {
      			updateReplicationSettingsEvent := &service_def.UpdateReplicationSettingsEvent{
      				ReplicationSpecificFields:             *replicationSpecificFields,
      

      Attachments

        Issue Links

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

          Activity

            Build couchbase-server-7.0.0-3233 contains goxdcr commit 400e7a3 with commit message:
            MB-41694 - log default or non-default replication update msg correctly

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-3233 contains goxdcr commit 400e7a3 with commit message: MB-41694 - log default or non-default replication update msg correctly

            People

              neil.huang Neil Huang
              neil.huang Neil Huang
              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