remove redundant secondary index checks from indexbg_killop_apply_ops.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.1.7
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Storage NYC 2018-12-31
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      indexbg_killop_apply_ops.js queries the index catalog on the secondary after RepSetTest.awaitReplication(). Due to the asynchronous nature of background index builds on secondary builds, this is not sufficient to ensure that the index has completed.

      ReplSetTest.stopSet() has logic to wait for background indexes to complete and to detect if the collection on the secondary has different number of indexes from the primary:

      https://github.com/mongodb/mongo/blob/7b1e64f12e855d979232ef7b185002d5c8103353/src/mongo/shell/replsettest.js#L1651

      The test assertions at the end of indexbg_killop_apply_ops.js are not necessary given the checks in ReplSetTest.stopSet().

            Assignee:
            Gregory Wlodarek
            Reporter:
            Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: