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

Missing topOfOplog in mock donor set in RecipientForgetMigration_WaitUntilStateDocInitialized

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Repl 2020-12-28
    • 0

    Description

      In TenantMigrationRecipientServiceTest, we use insertTopOfOplog to add oplog entries to the mock replica set so that _getStartOpTimesFromDonor can get the startFetchingOptime in unittests. In unittest RecipientForgetMigration_WaitUntilStateDocInitialized, we are missing such step and so sometimes it would hit this uassert that the unittest doesn't expect if the interrupt from onReceiveRecipientForgetMigration comes after the instance runs _getStartOpTimesFromDonor.

      To fix this, use insertTopOfOplog to insert a dummy oplog into the mock replica set like other tests do.

      Attachments

        Activity

          People

            lingzhi.deng@mongodb.com Lingzhi Deng
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: