getMore command before rs.initiate() can trip invariant

XMLWordPrintableJSON

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

      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
              Reporter:
              Justin Seyster
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: