Skip to content

Instantly share code, notes, and snippets.

@tleyden
Created May 25, 2018 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tleyden/dccaa3cf2be85160051a793333c24467 to your computer and use it in GitHub Desktop.
Save tleyden/dccaa3cf2be85160051a793333c24467 to your computer and use it in GitHub Desktop.
WARNING: DATA RACE
Write at 0x00c420874c48 by goroutine 68:
github.com/couchbase/sync_gateway/db.(*changeCache).Clear()
/drone/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:187 +0xdb
github.com/couchbase/sync_gateway/db.(*Database).UpdateAllDocChannels()
/drone/godeps/src/github.com/couchbase/sync_gateway/db/database.go:871 +0x212
github.com/couchbase/sync_gateway/rest.(*handler).handleResync()
/drone/godeps/src/github.com/couchbase/sync_gateway/rest/api.go:153 +0x15d
github.com/couchbase/sync_gateway/rest.(*handler).invoke()
/drone/godeps/src/github.com/couchbase/sync_gateway/rest/handler.go:223 +0x52e
github.com/couchbase/sync_gateway/rest.makeOfflineHandler.func1()
/drone/godeps/src/github.com/couchbase/sync_gateway/rest/handler.go:108 +0x97
net/http.HandlerFunc.ServeHTTP()
/usr/local/go/src/net/http/server.go:1918 +0x51
github.com/gorilla/mux.(*Router).ServeHTTP()
/drone/godeps/src/github.com/gorilla/mux/mux.go:114 +0x1a2
github.com/couchbase/sync_gateway/rest.wrapRouter.func1()
/drone/godeps/src/github.com/couchbase/sync_gateway/rest/routing.go:311 +0x8df
net/http.HandlerFunc.ServeHTTP()
/usr/local/go/src/net/http/server.go:1918 +0x51
github.com/couchbase/sync_gateway/rest.(*RestTester).SendAdminRequest()
/drone/godeps/src/github.com/couchbase/sync_gateway/rest/utilities_testing.go:343 +0x3e3
github.com/couchbase/sync_gateway/rest.TestDBOfflinePostResync()
/drone/godeps/src/github.com/couchbase/sync_gateway/rest/admin_api_test.go:1102 +0x5cf
testing.tRunner()
/usr/local/go/src/testing/testing.go:746 +0x16c
Previous read at 0x00c420874c48 by goroutine 82:
github.com/couchbase/sync_gateway/db.(*changeCache).processPrincipalDoc()
/drone/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:604 +0xd6
encoding/json.(*decodeState).unmarshal()
/usr/local/go/src/encoding/json/decode.go:187 +0x2db
encoding/json.Unmarshal()
/usr/local/go/src/encoding/json/decode.go:107 +0x20e
github.com/couchbase/sync_gateway/auth.(*Authenticator).UnmarshalUser()
/drone/godeps/src/github.com/couchbase/sync_gateway/auth/user.go:101 +0x117
github.com/couchbase/sync_gateway/auth.(*Authenticator).UnmarshalPrincipal()
/drone/godeps/src/github.com/couchbase/sync_gateway/auth/auth.go:65 +0xa3
github.com/couchbase/sync_gateway/db.(*changeCache).unmarshalPrincipal()
/drone/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:564 +0x2e4
github.com/couchbase/sync_gateway/db.(*changeCache).processPrincipalDoc()
/drone/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:597 +0x86
github.com/couchbase/sync_gateway/db.(*changeCache).DocChangedSynchronous()
/drone/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:405 +0x27df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment