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

MigrationDestinationManager::report() may access null _migrationCloningProgress

    XMLWordPrintableJSON

Details

    • Sharding NYC
    • Fully Compatible
    • ALL
    • v6.0, v5.0
    • 149

    Description

      It is possible for commands like _recvChunkStatus to be called prior to MigrationDestinationManager::start() having been called on that node. For example, there may be a primary failover on the recipient shard where the new primary of the recipient shard has never participated in a chunk migration and the primary of the donor shard runs _recvChunkStatus. The donor shard expects to learn the recipient shard has abandoned the chunk migration through the _recvChunkStatus response.

      long long _getNumCloned() {
          return _migrationCloningProgress->getNumCloned();
      }
       
      long long _getNumBytesCloned() {
          return _migrationCloningProgress->getNumBytes();
      }
      

      Returning 0 from MigrationDestinationManager::_getNumCloned() and MigrationDestinationManager::_getNumBytesCloned() will probably suffice.

      Attachments

        Activity

          People

            andrew.witten@mongodb.com Andrew Witten (Inactive)
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: