Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-327

Data race on zombie logger

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None

      Description

      There is a data race occurring on part of the zombie logger. Data race below. This can be reliably reproduced by setting the bucket operation timeout very low (<5ms) and performing a large number of KV gets.

      Having talked to Brett the missing half of this race is going to be in recordZopmbieResponse where the slice if modified.

       

      ==================
      WARNING: DATA RACE
      Read at 0x00c4200d8d98 by goroutine 13:
      {{ gopkg.in/couchbase/gocbcore%2ev7.(*Agent).zombieLogger()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocbcore.v7/tracing.go:178 +0x17d}}Previous write at 0x00c4200d8d98 by goroutine 18:
      {{ [failed to restore the stack]}}Goroutine 13 (running) created at:
      {{ gopkg.in/couchbase/gocbcore%2ev7.createAgent()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocbcore.v7/agent.go:654 +0x1149}}
      {{ gopkg.in/couchbase/gocbcore%2ev7.CreateAgent()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocbcore.v7/agent.go:515 +0xb0}}
      {{ gopkg.in/couchbase/gocb%2ev1.createBucket()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocb.v1/bucket.go:39 +0x3f}}
      {{ gopkg.in/couchbase/gocb%2ev1.(*Cluster).openBucket()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocb.v1/cluster.go:263 +0x295}}
      {{ gopkg.in/couchbase/gocb%2ev1.(*Cluster).OpenBucket()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocb.v1/cluster.go:277 +0x72}}
      {{ main.main()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/sandbox/main.go:87 +0x150}}Goroutine 18 (running) created at:
      {{ gopkg.in/couchbase/gocbcore%2ev7.(*memdClient).run()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocbcore.v7/memdclient.go:226 +0x112}}
      {{ gopkg.in/couchbase/gocbcore%2ev7.newMemdClient()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocbcore.v7/memdclient.go:48 +0x1ab}}
      {{ gopkg.in/couchbase/gocbcore%2ev7.(*Agent).dialMemdClient()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocbcore.v7/agentrouting.go:43 +0x2ab}}
      {{ gopkg.in/couchbase/gocbcore%2ev7.(*Agent).slowDialMemdClient()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocbcore.v7/agentrouting.go:166 +0x1c7}}
      {{ gopkg.in/couchbase/gocbcore%2ev7.(*Agent).(gopkg.in/couchbase/gocbcore%2ev7.slowDialMemdClient)-fm()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocbcore.v7/agentrouting.go:221 +0x59}}
      {{ gopkg.in/couchbase/gocbcore%2ev7.newMemdClientMux.func1()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocbcore.v7/memdclientmux.go:22 +0x52}}
      {{ gopkg.in/couchbase/gocbcore%2ev7.(*memdPipelineClient).Run()}}
      {{ /Users/charlesdixon/dev/go-workspace/src/gopkg.in/couchbase/gocbcore.v7/memdpipelineclient.go:148 +0x263}}
      ==================

        Attachments

        For Gerrit Dashboard: GOCBC-327
        # Subject Branch Project Status CR V

          Activity

          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-5.1.2-6014 contains gocbcore commit 6433560 with commit message:
          GOCBC-327: Fix data race on zombie logger

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-5.1.2-6014 contains gocbcore commit 6433560 with commit message: GOCBC-327 : Fix data race on zombie logger
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-6.0.0-1411 contains gocbcore commit 6433560 with commit message:
          GOCBC-327: Fix data race on zombie logger

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.0-1411 contains gocbcore commit 6433560 with commit message: GOCBC-327 : Fix data race on zombie logger
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-5.1.1-5904 contains gocbcore commit 6433560 with commit message:
          GOCBC-327: Fix data race on zombie logger

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-5.1.1-5904 contains gocbcore commit 6433560 with commit message: GOCBC-327 : Fix data race on zombie logger
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-6.5.0-1143 contains gocbcore commit 6433560 with commit message:
          GOCBC-327: Fix data race on zombie logger

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1143 contains gocbcore commit 6433560 with commit message: GOCBC-327 : Fix data race on zombie logger
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-5.5.1-3505 contains gocbcore commit 6433560 with commit message:
          GOCBC-327: Fix data race on zombie logger

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.1-3505 contains gocbcore commit 6433560 with commit message: GOCBC-327 : Fix data race on zombie logger
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-5.5.2-3704 contains gocbcore commit 6433560 with commit message:
          GOCBC-327: Fix data race on zombie logger

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.2-3704 contains gocbcore commit 6433560 with commit message: GOCBC-327 : Fix data race on zombie logger
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.6.0-2 contains gocbcore commit 6433560 with commit message:
          GOCBC-327: Fix data race on zombie logger

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-2 contains gocbcore commit 6433560 with commit message: GOCBC-327 : Fix data race on zombie logger
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.5.1-8 contains gocbcore commit 6433560 with commit message:
          GOCBC-327: Fix data race on zombie logger

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.5.1-8 contains gocbcore commit 6433560 with commit message: GOCBC-327 : Fix data race on zombie logger

            People

            • Assignee:
              charles.dixon Charles Dixon
              Reporter:
              charles.dixon Charles Dixon
            • 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

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.