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

A timeout occured after 30000ms selecting a server using CompositeServerSelector

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      I'm trying to create a Kubernetes Side-Car container that will help manage the mongo replica set. However, I can't seem to use the CSharp driver to connect to a mongo instance that was started with the --replSet option. I'd like for my C# application to send the 
      replSetInitiate command.  However, the driver refuses to connect by throwing a Timeout exception.

      var _mongoClient = new MongoClient("mongodb://localhost:30006/?replicaSet=rs0");
      var dbAdmin = _mongoClient.GetDatabase("admin");
      var result = await dbAdmin.RunCommandAsync<BsonDocument>("{replSetInitiate : {} }");
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            stbraley@gmail.com Todd Braley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: