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

XDCR - remove redundant interface methods

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • CheshireCat.Next
    • CheshireCat.Next
    • XDCR
    • None
    • 1

    Description

      When using XDCR as a library for xdcrDiffer compilation on Linux, golang gave the following warning:

      vagrant@ubuntu-focal:~/go/src/github.com/nelio2k/xdcrDiffer$ make
      go build -o xdcrDiffer -v
      go: downloading github.com/stretchr/objx v0.1.1
      go: finding gopkg.in/couchbase/gocb.v1 v1.6.7
      go: extracting github.com/stretchr/objx v0.1.1
      go: downloading gopkg.in/couchbase/gocb.v1 v1.6.7
      go: extracting gopkg.in/couchbase/gocb.v1 v1.6.7
      go: finding github.com/stretchr/objx v0.1.1
      github.com/couchbase/goxdcr/parts
      # github.com/couchbase/goxdcr/parts
      ../../../../pkg/mod/github.com/couchbase/goxdcr@v7.0.0-5051+incompatible/parts/dcp_nozzle.go:123:17: ambiguous selector reqHelper.dcp.RaiseEvent
      ../../../../pkg/mod/github.com/couchbase/goxdcr@v7.0.0-5051+incompatible/parts/dcp_nozzle.go:256:2: duplicate method Receive
      ../../../../pkg/mod/github.com/couchbase/goxdcr@v7.0.0-5051+incompatible/parts/dcp_nozzle.go:267:2: duplicate method RaiseEvent
      make: *** [Makefile:22: build] Error 2
      

      This is due to duplicate interface methods.

      Note the compilation works fine in CC and is fine for runtime, but compiling it on Ubuntu as a library is the issue.

      Attachments

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

        Activity

          People

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