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

[XDCR] Adv filtering int comparison with string causes goxdcr to exit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.5.0
    • 6.5.0
    • XDCR
    • None

    Description

      Doc contains:

      "int": 7445058468869693290,
      

      Expression:

      [root@localhost bin]# curl -X POST -u Administrator:password http://127.0.0.1:8091/controller/createReplication -d fromBucket=default -d toCluster=C2 -d toBucket=default -d replicationType=continuous -d checkpointInterval=60 -d statsInterval=500 -d filterExpression="int > dfhff"
      {"id":"89f50fd15dde7440b112abcb896d8b0d/default/default"}
      [root@localhost bin]#
      

      So to the user it seems like the REST call went through successfully, but no replication is created.

      Logs:

      Service 'goxdcr' exited with status 2. Restarting. Messages:
      github.com/couchbase/goxdcr/parts.(*Router).route(0xc000344540, 0x9cdfc0, 0xc000221a40, 0xc00060e940, 0xc000633b18, 0xc000633aa8)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/goxdcr/parts/router.go:170 +0x1db
      github.com/couchbase/goxdcr/parts.(*Router).route-fm(0x9cdfc0, 0xc000221a40, 0xc0003c2948, 0x3, 0xc000032070)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/goxdcr/parts/router.go:84 +0x3e
      github.com/couchbase/goxdcr/connector.(*Router).Forward(0xc0003c2930, 0x9cdfc0, 0xc000221a40, 0x0, 0x0)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/goxdcr/connector/router.go:60 +0xfb
      github.com/couchbase/goxdcr/parts.(*DcpNozzle).processData(0xc00018e820, 0x0, 0x0)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/goxdcr/parts/dcp_nozzle.go:838 +0x1623
      created by github.com/couchbase/goxdcr/parts.(*DcpNozzle).Start
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/goxdcr/parts/dcp_nozzle.go:549 +0x3e5
      

      Attachments

        Issue Links

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

          Activity

            People

              pavithra.mahamani Pavithra Mahamani (Inactive)
              pavithra.mahamani Pavithra Mahamani (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