drop_connections_replSet.js intermittent failure

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.8
    • Affects Version/s: 4.1.7
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2019-01-28, Repl 2019-02-11
    • 35
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Seen rarely, the first assert in this block fails, because the number of available connections to the removed secondary is 0, not 1:

      assert.eq(1, primary.adminCommand({connPoolStats: 1}).hosts[memberHost].available);
      assert.commandWorked(primary.adminCommand({dropConnections: 1, hostAndPort: [memberHost]}));
      assert.eq(0, primary.adminCommand({connPoolStats: 1}).hosts[memberHost].available);
      

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: