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

ReplSetTest initiated with seed member throws error on shutdown

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Replication
    • None
    • Replication
    • ALL

    Description

      In theory, we can create a ReplSetTest fixture from a seed node that is part of an existing replica set, like 'new ReplSetTest("host:123")'. The test queries the RS config and initiates its own data structures as if it had initiated the set itself. However, ReplSetTest.stop() fails:

      checkDBHashesForReplSet going to check data hashes on secondary: jesse-workstation:20022
      uncaught exception: TypeError: replSetConfig.members[rst.getNodeId(...)] is undefined :
      checkDBHashesForReplSet/<@src/mongo/shell/replsettest.js:2510:47
      checkDBHashesForReplSet@src/mongo/shell/replsettest.js:2387:17
      ReplSetTest/this.checkReplicaSet@src/mongo/shell/replsettest.js:2303:13
      ReplSetTest/this.checkReplicatedDataHashes@src/mongo/shell/replsettest.js:2588:9
      RollbackTest/this._checkDataConsistencyImpl@jstests/replsets/libs/rollback_test.js:249:9
      RollbackTest/this.checkDataConsistency@jstests/replsets/libs/rollback_test.js:255:9
      

      The fixture doesn't initialize its "members" array when constructed with a seed node.

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: