Data Race 1: WARNING: DATA RACE Read by goroutine 60: github.com/couchbase/goxdcr/pipeline.(*GenericPipeline).State() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline/generic_pipeline.go:553 +0x3d github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).updateStatsOnce() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:309 +0x94 github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).updateStats() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:294 +0x481 Previous write by goroutine 85: github.com/couchbase/goxdcr/pipeline.(*GenericPipeline).SetState() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline/generic_pipeline.go:616 +0x5d6 github.com/couchbase/goxdcr/pipeline.(*GenericPipeline).Start() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline/generic_pipeline.go:262 +0x194a github.com/couchbase/goxdcr/pipeline_manager.(*pipelineManager).startPipeline() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:300 +0xa9c github.com/couchbase/goxdcr/pipeline_manager.(*pipelineUpdater).update() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:627 +0x1388 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 60 (running) created at: github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).Start() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:698 +0x486 github.com/couchbase/goxdcr/pipeline_ctx.(*PipelineRuntimeCtx).Start() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_ctx/pipeline_runtimeCtx.go:67 +0x57e github.com/couchbase/goxdcr/pipeline.(*GenericPipeline).Start() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline/generic_pipeline.go:195 +0xb3f github.com/couchbase/goxdcr/pipeline_manager.(*pipelineManager).startPipeline() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:300 +0xa9c github.com/couchbase/goxdcr/pipeline_manager.(*pipelineUpdater).update() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:627 +0x1388 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 85 (finished) created at: github.com/couchbase/goxdcr/pipeline_manager.(*pipelineManager).launchUpdater() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:477 +0x57c github.com/couchbase/goxdcr/pipeline_manager.CheckPipelines() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:230 +0x353 github.com/couchbase/goxdcr/replication_manager.(*replicationManager).checkReplicationStatus() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/replication_manager/replication_manager.go:240 +0x2d5 ================== ================== WARNING: DATA RACE --- Fixing settingMap via copy approch should fix this. Read by goroutine 60: github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).calculateDocsChecked() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:554 +0x138 github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).processCalculatedStats() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:517 +0xded github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).processRawStats() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:454 +0xa52 github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).updateStatsOnce() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:318 +0x4d0 github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).updateStats() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:294 +0x481 Previous write by goroutine 159: github.com/couchbase/goxdcr/pipeline_svc.(*CheckpointManager).populateVBTimestamp() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/checkpoint_manager.go:565 +0x82 github.com/couchbase/goxdcr/pipeline_svc.(*CheckpointManager).startSeqnoGetter() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/checkpoint_manager.go:447 +0xc52 Goroutine 60 (running) created at: github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).Start() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:698 +0x486 github.com/couchbase/goxdcr/pipeline_ctx.(*PipelineRuntimeCtx).Start() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_ctx/pipeline_runtimeCtx.go:67 +0x57e github.com/couchbase/goxdcr/pipeline.(*GenericPipeline).Start() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline/generic_pipeline.go:195 +0xb3f github.com/couchbase/goxdcr/pipeline_manager.(*pipelineManager).startPipeline() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:300 +0xa9c github.com/couchbase/goxdcr/pipeline_manager.(*pipelineUpdater).update() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:627 +0x1388 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 159 (running) created at: github.com/couchbase/goxdcr/pipeline_svc.(*CheckpointManager).SetVBTimestamps() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/checkpoint_manager.go:344 +0x11b7 github.com/couchbase/goxdcr/factory.(*XDCRFactory).SetStartSeqno() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/factory/xdcr_factory.go:632 +0x496 github.com/couchbase/goxdcr/factory.(*XDCRFactory).SetStartSeqno-fm() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/factory/xdcr_factory.go:163 +0x4f ================== ================== WARNING: DATA RACE Read by goroutine 322: runtime.mapaccess1_faststr() /Users/riteshmotlani/.cbdepscache/exploded/x86_64/go-1.6/go/src/runtime/hashmap_fast.go:193 +0x0 github.com/couchbase/goxdcr/pipeline_svc.(*checkpointMgrCollector).OnEvent() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:1103 +0xaf github.com/couchbase/goxdcr/component.(*AbstractComponent).RaiseEvent() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/component/abstract_component.go:83 +0x14c github.com/couchbase/goxdcr/pipeline_svc.(*CheckpointManager).raiseSuccessCkptForVbEvent() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/checkpoint_manager.go:759 +0x30d github.com/couchbase/goxdcr/pipeline_svc.(*CheckpointManager).do_checkpoint() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/checkpoint_manager.go:739 +0xa45 github.com/couchbase/goxdcr/pipeline_svc.(*CheckpointManager).performCkpt() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/checkpoint_manager.go:682 +0x664 Previous write by goroutine 60: runtime.mapassign1() /Users/riteshmotlani/.cbdepscache/exploded/x86_64/go-1.6/go/src/runtime/hashmap.go:429 +0x0 github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).initOverviewRegistry() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:646 +0x3b9 github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).processRawStats() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:377 +0x189 github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).updateStatsOnce() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:318 +0x4d0 github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).updateStats() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:294 +0x481 Goroutine 322 (running) created at: github.com/couchbase/goxdcr/pipeline_svc.(*CheckpointManager).checkpointing() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/checkpoint_manager.go:646 +0x52b Goroutine 60 (running) created at: github.com/couchbase/goxdcr/pipeline_svc.(*StatisticsManager).Start() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/statistics_manager.go:698 +0x486 github.com/couchbase/goxdcr/pipeline_ctx.(*PipelineRuntimeCtx).Start() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_ctx/pipeline_runtimeCtx.go:67 +0x57e github.com/couchbase/goxdcr/pipeline.(*GenericPipeline).Start() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline/generic_pipeline.go:195 +0xb3f github.com/couchbase/goxdcr/pipeline_manager.(*pipelineManager).startPipeline() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:300 +0xa9c github.com/couchbase/goxdcr/pipeline_manager.(*pipelineUpdater).update() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:627 +0x1388 github.com/couchbase/goxdcr/pipeline_manager.(*pipelineUpdater).start() github.com/couchbase/goxdcr/pipeline_manager.(*pipelineUpdater).start() /Users/riteshmotlani/cbwatson/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:580 +0x119 ==================