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

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

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • 100.0.0
    • Affects Version/s: 4.2.0
    • Component/s: mongostat
    • None

      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
      

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

              Created:
              Updated:
              Resolved: