Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-821

panic: Call of bsoncore.Value.Timestamp on invalid type

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: No Release, 0.3.0
    • Component/s: Testing
    • Environment:

      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
      

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            dexterhd Anton Kucherov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: