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

getMore command before rs.initiate() can trip invariant

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.0.16
    • Fix Version/s: 4.0.17
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Minor Change
    • Operating System:
      ALL
    • Sprint:
      Query 2020-03-23
    • Case:

      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

            Assignee:
            justin.seyster Justin Seyster
            Reporter:
            justin.seyster Justin Seyster
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: