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

index_build_killop_secondary_after_commit.js should wait for restarted mongod to become secondary

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc17
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • ALL
    • v8.0
    • Execution Team 2024-08-05, Execution Team 2024-08-19
    • 0

      This test may fail to check the indexes on the restarted secondary node because it is not waiting for the restarted node to be readable as a secondary.

      The ReplSetTest.waitForState() and awaitReplication() calls are not sufficient for ensuring that the secondary node is available because waitForState is based on the primary's view of the replica set.

      One possible solution would be to remove the waitForState() call from the test and invoke ReplSetTest.awaitSecondaryNodes right before the test checks the secondary's indexes.

      This issue may also be present in other index build tests that contain the changes from SERVER-75579.

            Assignee:
            malik.endsley@mongodb.com Malik Endsley
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: