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

getMore command before rs.initiate() can trip invariant

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.0.16
    • 4.0.17
    • None
    • Minor Change
    • ALL
    • Query 2020-03-23

    Description

      In v4.0, every getMore command calls serverGlobalParams.featureCompatibility.getVersion() .

      However, this check trips an invariant if there is no FCV document in place yet. First-time launch of a mongod in a replica set does not populate the FCV document. That doesn't happen until the call to rs.initiate(), which leaves a period of time during which any getMore command will crash the server.

      The check was removed for v4.2, so this bug should not occur in future releases.

      Attachments

        Activity

          People

            justin.seyster@mongodb.com Justin Seyster
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: