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

[BP 7.6.3] XDCR: Passing string instead of error in event otherInfo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 7.6.4
    • 7.6.0, 7.6.2, 7.6.1
    • XDCR
    • Untriaged
    • 0
    • Unknown

    Description

      When DCP stream's version gets overloaded it raises ErrorEncountered event. The otherInfo in the event data is passed as string instead of an error. This causes panic:

      2024-08-12T20:47:05.965+01:00 FATA GOXDCR.DcpNozzle: Error: dcpStreamHelper for dcp dcp_d65c2b364d52dcdc59982092d1beff73/default/B1_127.0.0.1:12000_0 vbno: 2 internal version overflow
      panic: interface conversion: string is not error: missing method Error
       
       
      goroutine 225 [running]:
      github.com/couchbase/goxdcr/pipeline_svc.(*PipelineSupervisor).OnEvent(0x14000534c00, 0x14000ab20a0)
      	/Users/sudeepjathar/cb/723/goproj/src/github.com/couchbase/goxdcr/pipeline_svc/pipeline_supervisor.go:305 +0x5ec
      github.com/couchbase/goxdcr/component.(*AbstractComponent).RaiseEvent(0x140006a8001?, 0x14000ab20a0)
      	/Users/sudeepjathar/cb/723/goproj/src/github.com/couchbase/goxdcr/component/abstract_component.go:92 +0x10c
      github.com/couchbase/goxdcr/parts.(*dcpStreamReqHelper).getNewVersion(0x140004e81e0)
      	/Users/sudeepjathar/cb/723/goproj/src/github.com/couchbase/goxdcr/parts/dcp_nozzle.go:135 +0x274
      github.com/couchbase/goxdcr/parts.(*DcpNozzle).startUprStream(0x14000065900, 0x2, 0x1400055cd98?)
      	/Users/sudeepjathar/cb/723/goproj/src/github.com/couchbase/goxdcr/parts/dcp_nozzle.go:1587 +0x40
      github.com/couchbase/goxdcr/parts.(*DcpNozzle).startUprStreams_internal(0x14000065900, {0x14000043120?, 0xb, 0xf})
      	/Users/sudeepjathar/cb/723/goproj/src/github.com/couchbase/goxdcr/parts/dcp_nozzle.go:1428 +0x288
      github.com/couchbase/goxdcr/parts.(*DcpNozzle).startUprStreams(0x14000065900)
      	/Users/sudeepjathar/cb/723/goproj/src/github.com/couchbase/goxdcr/parts/dcp_nozzle.go:1369 +0x1b8
      created by github.com/couchbase/goxdcr/parts.(*DcpNozzle).Start
      	/Users/sudeepjathar/cb/723/goproj/src/github.com/couchbase/goxdcr/parts/dcp_nozzle.go:837 +0x2f0

       

      Attachments

        Issue Links

          Activity

            People

              sudeep.jathar Sudeep Jathar
              sudeep.jathar Sudeep Jathar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                PagerDuty