Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Race at startup #344

Open
primalmotion opened this Issue Apr 12, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@primalmotion
Copy link

primalmotion commented Apr 12, 2019

What version of MongoDB are you using (mongod --version)?

4..0

What version of Go are you using (go version)?

1.12.2

What operating system and processor architecture are you using (go env)?

macOS

What did you do?

Just starting my backend:

==================
WARNING: DATA RACE
Read at 0x0000016b3678 by goroutine 7:
  time.Now()
      /usr/local/go/src/time/time.go:1060 +0xcf
  time.sendTime()
      /usr/local/go/src/time/sleep.go:141 +0x44

Previous write at 0x0000016b3678 by main goroutine:
  [failed to restore the stack]

Goroutine 7 (running) created at:
  runtime.(*timersBucket).addtimerLocked()
      /usr/local/go/src/runtime/time.go:170 +0x113
  go.aporeto.io/backend/vendor/github.com/globalsign/mgo.newcoarseTimeProvider.func1()
      /tmp/build/6cad771a/go/src/go.aporeto.io/backend/vendor/github.com/globalsign/mgo/coarse_time.go:49 +0x50
==================

This only happens once it starts, but almost everytime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.