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

Don't dereference the boost::optional<MigrationSessionId> maintained by MigrationDestinationManager unless it is known to be set

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.6
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Sharding 2017-05-08
    • 0

      Discovered in BF-5146 fuzzer test. We can dereference MigrationDestionationManager::_sessionId, a boost::optional<MigrationSessionId>, when it is unset: https://github.com/mongodb/mongo/blob/ed80d2d3c5735c424e5c1cd58169077327976d2e/src/mongo/db/s/migration_destination_manager.cpp#L356

      Backports are not needed, as the log message in which _sessionId is dereferenced is new as of v3.5

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: