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

getMore command before rs.initiate() can trip invariant

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.17
    • Affects Version/s: 4.0.16
    • Component/s: None
    • Labels:
    • Minor Change
    • ALL
    • Query 2020-03-23

      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.

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

              Created:
              Updated:
              Resolved: