Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1968

Cannot insert record to the MongoDB in Docker container

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.3
    • Component/s: Connectivity
    • None

      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?

            Assignee:
            Unassigned Unassigned
            Reporter:
            AlexSid Aleksandr Sidorenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: