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

Investigate effectiveness of test jstests/replsets/rollback_waits_for_bgindex_completion.js

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.0 Desired
    • Component/s: None
    • None
    • ALL

      Test jstests/replsets/rollback_waits_for_bgindex_completion.js runs an index build in the background while a transaction is waiting to be committed, leader steps down, and rollsback the txn. Test verifies that rollback should wait for the index build to be aborted but it seems from the logs that there is no wait happening--rollback proceeds immediately because abort of index build has occurred earlier. We should investigate if the current behavior makes for a correct test, and possibly introduce a delay in aborting the index build so rollback effectively waits for it.

      Please refer to ticket https://jira.mongodb.org/browse/SERVER-59687 for more information.

            Assignee:
            adi.zaimi@mongodb.com Adi Zaimi
            Reporter:
            adi.zaimi@mongodb.com Adi Zaimi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: