Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39099

drop_connections_replSet.js intermittent failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.1.7
    • Fix Version/s: 4.1.8
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Repl 2019-01-28, Repl 2019-02-11
    • Linked BF Score:
      35

      Description

      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);
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: