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

DataRace in ReplicationManager( Replication status Object)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 4.5.0
    • 4.5.0
    • XDCR
    • Untriaged
    • Unknown

    Description

      Take look at below race condition caused via replication status object.

      WARNING: DATA RACE
      Read by goroutine 33:
      github.com/couchbase/goxdcr/replication_manager.GetReplicationInfos()
      /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/replication_manager/replication_manager.go:595 +0x2fb
      github.com/couchbase/goxdcr/replication_manager.(*Adminport).doGetAllReplicationInfosRequest()
      /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/replication_manager/adminport.go:380 +0xd2
      github.com/couchbase/goxdcr/replication_manager.(*Adminport).handleRequest()
      /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/replication_manager/adminport.go:170 +0x826
      github.com/couchbase/goxdcr/replication_manager.(*Adminport).processRequest()
      /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/replication_manager/adminport.go:136 +0x1fd
      github.com/couchbase/goxdcr/replication_manager.(*Adminport).(github.com/couchbase/goxdcr/replication_manager.processRequest)-fm()
      /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/replication_manager/adminport.go:68 +0x59
      github.com/couchbase/goxdcr/gen_server.(*GenServer).run()
      /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/gen_server/gen_server.go:99 +0xcf0

      Previous write by goroutine 102:
      github.com/couchbase/goxdcr/pipeline_manager.(*pipelineUpdater).update()
      /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:642 +0x789
      github.com/couchbase/goxdcr/pipeline_manager.(*pipelineUpdater).start()
      /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:580 +0x119

      Goroutine 33 (running) created at:
      github.com/couchbase/goxdcr/gen_server.(*GenServer).Start_server()
      /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/gen_server/gen_server.go:69 +0x85
      github.com/couchbase/goxdcr/replication_manager.(*Adminport).Start()
      /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/replication_manager/adminport.go:82 +0x6e
      ==================
      ==================

      Attachments

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

        Activity

          People

            ritesh.motlani Ritesh Motlani (Inactive)
            ritesh.motlani Ritesh Motlani (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