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

Wait and set 'secondaryOk' after recipientSet restart in tenant_migration_recipient_resume_on_stepup_and_restart.js

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.0.0-rc1, 5.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v5.0, v4.9
    • 25

    Description

      After the tenant_migration_recipient_resume_on_stepup_and_restart.js restarts the recipientRst, the node instance is recreated and `secondaryOk` is not set on the node, thus when calling waitForMigrationGarbageCollection, which does the collection count on each node including secondaries, the call fails on a secondary with NotPrimaryNoSecondaryOk. After restarting replset, we usually call awaitSecondaryNodes() and getPrimary() to wait for election to finish and all nodes in their desired state, and this also sets `secondaryOk`.

      Attachments

        Activity

          People

            wenbin.zhu@mongodb.com Wenbin Zhu
            wenbin.zhu@mongodb.com Wenbin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: