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

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-rc1, 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.0, v4.9
    • Linked BF Score:
      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

            Assignee:
            wenbin.zhu Wenbin Zhu
            Reporter:
            wenbin.zhu Wenbin Zhu
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: