-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.12.1
-
Component/s: None
Summary
mongodb go driver version from 1.11.1 to 1.12.1, watch changestream will be panic.
go.mongodb.org/mongo-driver/mongo.(*ChangeStream).loopNext(0xc000002140, {0x124ca00, 0x18e8040}, 0x0) /go/pkg/mod/go.mongodb.org/mongo-driver@v1.12.1/mongo/change_stream.go:658 +0x6b go.mongodb.org/mongo-driver/mongo.(*ChangeStream).next(0xc000002140, {0x124ca00?, 0x18e8040?}, 0xd0?) /go/pkg/mod/go.mongodb.org/mongo-driver@v1.12.1/mongo/change_stream.go:627 +0x5d go.mongodb.org/mongo-driver/mongo.(*ChangeStream).Next(...) /go/pkg/mod/go.mongodb.org/mongo-driver@v1.12.1/mongo/change_stream.go:598 draw-platform/storage/mongodb.(*StorageCollection).WatchRunnerResponse.func1()
How to Reproduce
Create a empty collection and set the Watch mongo.Pipeline{matchStage} like this:
matchStage := bson.D{{
Key: "$match", Value: bson.D{
,
{Key: "fullDocument.requestUUID", Value: requestUUID},
}},
}
and the query condition no datas will be found, because of I want to watch data from first data by the query condition.
- is related to
-
GODRIVER-2998 Make ChangeStream.Close thread safe
- Backlog