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

Js-evaluator race with js-evaluator/impl/notification.go

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Cheshire-Cat
    • CheshireCat.Next
    • js-evaluator, XDCR
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Data race detected when running XDCR test cases using race detector.

      ==================
      WARNING: DATA RACE
      Write at 0x00c0000ad080 by goroutine 38:
      runtime.mapassign_faststr()
      /Users/neil.huang/.cbdepscache/exploded/x86_64/go-1.15.8/go/src/runtime/map_faststr.go:202 +0x0
      github.com/couchbase/eventing-ee/js-evaluator/impl.(*notificationServer).NotifyPort()
      /Users/neil.huang/source/couchbase/goproj/src/github.com/couchbase/eventing-ee/js-evaluator/impl/notification.go:64 +0xd7
      github.com/couchbase/eventing-ee/gen/nftp/client._Notification_NotifyPort_Handler()
      /Users/neil.huang/source/couchbase/goproj/src/github.com/couchbase/eventing-ee/gen/nftp/client/evaluator.pb.go:830 +0x306
      google.golang.org/grpc.(*Server).processUnaryRPC()
      /Users/neil.huang/source/couchbase/godeps/src/google.golang.org/grpc/server.go:966 +0x9c5
      google.golang.org/grpc.(*Server).handleStream()
      /Users/neil.huang/source/couchbase/godeps/src/google.golang.org/grpc/server.go:1245 +0x136b
      google.golang.org/grpc.(*Server).serveStreams.func1.1()
      /Users/neil.huang/source/couchbase/godeps/src/google.golang.org/grpc/server.go:685 +0xdc

      Previous read at 0x00c0000ad080 by main goroutine:
      runtime.mapaccess2_faststr()
      /Users/neil.huang/.cbdepscache/exploded/x86_64/go-1.15.8/go/src/runtime/map_faststr.go:107 +0x0
      github.com/couchbase/eventing-ee/js-evaluator/impl.(*notificationServer).WaitForWorkerPort()
      /Users/neil.huang/source/couchbase/goproj/src/github.com/couchbase/eventing-ee/js-evaluator/impl/notification.go:71 +0xd9
      github.com/couchbase/eventing-ee/js-evaluator/impl.(*evaluator).spawnWorkers()
      /Users/neil.huang/source/couchbase/goproj/src/github.com/couchbase/eventing-ee/js-evaluator/impl/evaluator.go:74 +0x1dc
      github.com/couchbase/eventing-ee/js-evaluator/impl.newEvaluator()
      /Users/neil.huang/source/couchbase/goproj/src/github.com/couchbase/eventing-ee/js-evaluator/impl/evaluator.go:32 +0x465
      github.com/couchbase/eventing-ee/js-evaluator/impl.(*Engine).Start()
      /Users/neil.huang/source/couchbase/goproj/src/github.com/couchbase/eventing-ee/js-evaluator/impl/engine.go:35 +0x287
      github.com/couchbase/goxdcr/service_impl.(*ResolverSvc).initEvaluator()
      /Users/neil.huang/source/couchbase/goproj/src/github.com/couchbase/goxdcr/service_impl/resolver_service.go:195 +0x512
      github.com/couchbase/goxdcr/service_impl.(*ResolverSvc).Start()
      /Users/neil.huang/source/couchbase/goproj/src/github.com/couchbase/goxdcr/service_impl/resolver_service.go:132 +0x7c
      github.com/couchbase/goxdcr/replication_manager.StartReplicationManager.func1()
      /Users/neil.huang/source/couchbase/goproj/src/github.com/couchbase/goxdcr/replication_manager/replication_manager.go:166 +0x348
      sync.(*Once).doSlow()
      /Users/neil.huang/.cbdepscache/exploded/x86_64/go-1.15.8/go/src/sync/once.go:66 +0x109
      sync.(*Once).Do()
      /Users/neil.huang/.cbdepscache/exploded/x86_64/go-1.15.8/go/src/sync/once.go:57 +0x68
      github.com/couchbase/goxdcr/replication_manager.StartReplicationManager()
      /Users/neil.huang/source/couchbase/goproj/src/github.com/couchbase/goxdcr/replication_manager/replication_manager.go:152 +0x2d1
      main.main()
      goproj/src/github.com/couchbase/goxdcr/main/main.go:181 +0x1b86

      Goroutine 38 (running) created at:
      google.golang.org/grpc.(*Server).serveStreams.func1()
      /Users/neil.huang/source/couchbase/godeps/src/google.golang.org/grpc/server.go:683 +0xb8
      google.golang.org/grpc/internal/transport.(*http2Server).operateHeaders()
      /Users/neil.huang/source/couchbase/godeps/src/google.golang.org/grpc/internal/transport/http2_server.go:419 +0x1545
      google.golang.org/grpc/internal/transport.(*http2Server).HandleStreams()
      /Users/neil.huang/source/couchbase/godeps/src/google.golang.org/grpc/internal/transport/http2_server.go:459 +0x324
      google.golang.org/grpc.(*Server).serveStreams()
      /Users/neil.huang/source/couchbase/godeps/src/google.golang.org/grpc/server.go:681 +0x1c1
      google.golang.org/grpc.(*Server).handleRawConn.func1()
      /Users/neil.huang/source/couchbase/godeps/src/google.golang.org/grpc/server.go:643 +0x50
      ==================

      Attachments

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

        Activity

          jliang John Liang added a comment -

          This could be the old js evaluator. XDCR has not uptake the new one.

          jliang John Liang added a comment - This could be the old js evaluator. XDCR has not uptake the new one.

          Resolving as we've stopped building the deprecated js-evaluator.

          abhishek.jindal Abhishek Jindal added a comment - Resolving as we've stopped building the deprecated js-evaluator.

          People

            neil.huang Neil Huang
            neil.huang Neil Huang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty