[CSHARP-2209] Race condition in ChangeStreamOperationTests Created: 07/Mar/18  Updated: 28/Oct/23  Resolved: 14/Mar/18

Status: Closed
Project: C# Driver
Component/s: Testing
Affects Version/s: 2.5
Fix Version/s: 2.5.1

Type: Bug Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The server returns an error when $changeStream refers to a collection and database that don't exist:

Command aggregate failed: cannot open $changeStream for non-existent database: Tests03071653.

Depending on the order in which tests happen to be run some of the tests in ChangeStreamOperationTests can fail if the database hasn't already been created by some other test first.



 Comments   
Comment by Githook User [ 16/Mar/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2209: Fix race condition in ChangeStreamOperationTests
Branch: v2.5.x
https://github.com/mongodb/mongo-csharp-driver/commit/a5bdb75c49ecde21d75db55a3d171bc325037355

Comment by Githook User [ 14/Mar/18 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2209: Fix race condition in ChangeStreamOperationTests
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/13c5b9b2576610661f0270897f4411258062e432

Generated at Wed Feb 07 21:41:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.