index_build_killop_secondary_after_commit.js should wait for restarted mongod to become secondary

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: