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

GoXDCR: panic from goxdcr/pipeline.(*ReplicationStatus).AddError (index out of range)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.0.0
    • 4.0.0
    • XDCR
    • Security Level: Public
    • None

    Description

      Build


      4.0.0-3082

      Found in system test.

      Multiple crashes seen with the following stack trace from
      https://github.com/couchbase/goxdcr/blob/master/pipeline/ReplicationStatus.go#L127

      On .58 and many other nodes:

      panic: runtime error: index out of range
       
      goroutine 15 [running]:
      github.com/couchbase/goxdcr/pipeline.(*ReplicationStatus).AddError(0xc2081326c0, 0x7f0cfd0e6b40, 0xc20802b140)
      	/home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/goxdcr/pipeline/ReplicationStatus.go:127 +0x4c3
      github.com/couchbase/goxdcr/pipeline_manager.(*pipelineUpdater).reportStatus(0xc208138200)
      	/home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:608 +0x3c
      github.com/couchbase/goxdcr/pipeline_manager.(*pipelineUpdater).update(0xc208138200, 0xc208130e40)
      	/home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:602 +0x50f
      github.com/couchbase/goxdcr/pipeline_manager.(*pipelineUpdater).start(0xc208138200)
      	/home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:557 +0x42c
      created by github.com/couchbase/goxdcr/pipeline_manager.(*pipelineManager).launchUpdater
      	/home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/goxdcr/pipeline_manager/pipeline_manager.go:432 +0x276
       
      goroutine 1 [chan receive, 3 minutes]:
      main.main()
      	/home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/goxdcr/main/main.go:142 +0x14c8
      

      Attachments

        Issue Links

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

          Activity

            People

              apiravi Aruna Piravi (Inactive)
              apiravi Aruna Piravi (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