-
Type: Bug
-
Resolution: Gone away
-
Priority: Minor - P4
-
None
-
Affects Version/s: No Release, 0.3.0
-
Component/s: Testing
-
Environment:System Version: macOS 10.14.3 (18D109)
Kernel Version: Darwin 18.2.0
------
go version go1.11.4 darwin/amd64
------
Client: Docker Engine - Community
Version: 18.09.1
API version: 1.39
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:33:12 2019
OS/Arch: darwin/amd64
Experimental: true
------
Server: Docker Engine - Community
Engine:
Version: 18.09.1
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:41:49 2019
OS/Arch: linux/amd64
Experimental: true
------
MongoDB shell version v3.6.7
git version: 2628472127e9f1826e02c665c1d93880a204075e
OpenSSL version: OpenSSL 1.0.1t 3 May 2016
allocator: tcmalloc
modules: none
build environment:
distmod: debian81
distarch: x86_64
target_arch: x86_64
------
db version v3.6.7
git version: 2628472127e9f1826e02c665c1d93880a204075e
OpenSSL version: OpenSSL 1.0.1t 3 May 2016
allocator: tcmalloc
modules: none
build environment:
distmod: debian81
distarch: x86_64
target_arch: x86_64System Version: macOS 10.14.3 (18D109) Kernel Version: Darwin 18.2.0 ------ go version go1.11.4 darwin/amd64 ------ Client: Docker Engine - Community Version: 18.09.1 API version: 1.39 Go version: go1.10.6 Git commit: 4c52b90 Built: Wed Jan 9 19:33:12 2019 OS/Arch: darwin/amd64 Experimental: true ------ Server: Docker Engine - Community Engine: Version: 18.09.1 API version: 1.39 (minimum version 1.12) Go version: go1.10.6 Git commit: 4c52b90 Built: Wed Jan 9 19:41:49 2019 OS/Arch: linux/amd64 Experimental: true ------ MongoDB shell version v3.6.7 git version: 2628472127e9f1826e02c665c1d93880a204075e OpenSSL version: OpenSSL 1.0.1t 3 May 2016 allocator: tcmalloc modules: none build environment: distmod: debian81 distarch: x86_64 target_arch: x86_64 ------ db version v3.6.7 git version: 2628472127e9f1826e02c665c1d93880a204075e OpenSSL version: OpenSSL 1.0.1t 3 May 2016 allocator: tcmalloc modules: none build environment: distmod: debian81 distarch: x86_64 target_arch: x86_64
I have one test failed after checkout `master` or `0.3.0` branch and then run `make`.
Panic appears on this line: https://github.com/mongodb/mongo-go-driver/blob/master/mongo/causal_consistency_test.go#L245
Here is the part of the stack trace:
panic: Call of bsoncore.Value.Timestamp on invalid type [recovered]panic: Call of bsoncore.Value.Timestamp on invalid type [recovered] panic: Call of bsoncore.Value.Timestamp on invalid type goroutine 33 [running]:testing.tRunner.func1(0xc0003b8000) /usr/local/Cellar/go/1.11.4/libexec/src/testing/testing.go:792 +0x387panic(0x15f4480, 0xc00041ce40) /usr/local/Cellar/go/1.11.4/libexec/src/runtime/panic.go:513 +0x1b9github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore.Value.Timestamp(0xc0003a6000, 0x0, 0x0, 0x0, 0x1) /Users/dexter/Projects/src/github.com/mongodb/mongo-go-driver/x/bsonx/bsoncore/value.go:667 +0x1adgithub.com/mongodb/mongo-go-driver/bson.RawValue.Timestamp(0x0, 0x0, 0x0, 0x0, 0x0, 0x1) /Users/dexter/Projects/src/github.com/mongodb/mongo-go-driver/bson/raw_value.go:265 +0x66github.com/mongodb/mongo-go-driver/mongo.TestCausalConsistency.func3(0xc0003b8000) /Users/dexter/Projects/src/github.com/mongodb/mongo-go-driver/mongo/causal_consistency_test.go:245 +0x3fbtesting.tRunner(0xc0003b8000, 0x166b9d8) /usr/local/Cellar/go/1.11.4/libexec/src/testing/testing.go:827 +0xbfcreated by testing.(*T).Run /usr/local/Cellar/go/1.11.4/libexec/src/testing/testing.go:878 +0x35cFAIL github.com/mongodb/mongo-go-driver/mongo 0.068s