Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2396

mongostat doesn't work with --uri with replica set name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Gone away
    • 4.2.0
    • 100.0.0
    • mongostat
    • None

    Description

      A replica set URI fails:

      $ mongostat --uri=mongodb://urania:61368,urania:61378,urania:61387/?replicaSet=foo
      2019-10-11T11:26:15.540-0400    could not connect to server: server selection error: server selection timeout
      current topology: Type: Single
      Servers:
       

      Without the replicaSet parameter, it works:

      $ mongostat --uri=mongodb://urania:61368,urania:61378,urania:61387
      insert query update delete getmore command dirty used flushes vsize   res qrw arw net_in net_out conn                time
          *0    *0     *0     *0       0     1|0  0.0% 0.4%       0 5.35G 55.0M 0|0 1|0   169b   33.5k    2 Oct 11 11:25:15.245
          *0    *0     *0     *0       0     0|0  0.0% 0.4%       0 5.35G 55.0M 0|0 1|0   111b   33.3k    2 Oct 11 11:25:16.245
          *0    *0     *0     *0       0     0|0  0.0% 0.4%       0 5.35G 55.0M 0|0 1|0   111b   33.3k    2 Oct 11 11:25:17.247
          *0    *0     *0     *0       0     0|0  0.0% 0.4%       0 5.35G 55.0M 0|0 1|0   111b   33.3k    2 Oct 11 11:25:18.247
      

      Attachments

        Issue Links

          Activity

            People

              huan.li@mongodb.com Huan Li
              david.golden@mongodb.com David Golden
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: