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

Extracting forceJumbo from docs in config.migrations in MigrationType::fromBSON can throw

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.4.2
    • Component/s: Sharding
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 2020-09-21, Sharding 2020-10-05

      Description

      A new field 'forceJumbo' was added to docs in config.migraitons in v4.4. In MigrationType::fromBSON, we attempt to extract this field from a BSONObj which will throw NoSuchKey if the field does not exist. We should prevent the server from throwing if the field does not exist and instead use the default value 'doNotForceJumbo'.

        Attachments

          Activity

            People

            Assignee:
            janna.golden Janna Golden
            Reporter:
            janna.golden Janna Golden
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: