[CSHARP-1968] Cannot insert record to the MongoDB in Docker container Created: 21/Apr/17  Updated: 13/Jul/20  Resolved: 13/Jul/20

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: 2.4.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Aleksandr Sidorenko Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive TestInsertSubstances.zip    
Issue Links:
Duplicate
is duplicated by CSHARP-1967 Error in adding of new items from .xm... Closed

 Description   

Hello,
Here is our problem. We found some problem record that from time to time cannot be pushed to MongoDB collection. We prepared a very simple test application that tries to insert this problem record 300 times to collection. Almost right after we start the app it hangs when we try to insert it to MongoDB and never comes back. Sometimes it hangs on the first attempt to write to the Mongo, sometimes after 10 or 20 successful iterations.
We run Mongo in Docker container and we start it with “docker run -it --name cvsp-mongo -p 27017:27017 mongo” command in Windows 10 Pro. In order to connect to Mongo from our app we use latest version of C# driver. If we try to install MongoDB locally (without Docker container) everything works as expected and we successful go through all 300 iterations.
We tried to activate MongoDB logs and change the verbosity level, but can’t see any relevant information in logs at all.
Could you take a look on our attached application and help us figure out what could be the problem?


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