Fix race in establishCursors unittest

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.4.0-rc11, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In establish_cursors_test.cpp, InterruptedWithDanglingRemoteRequest has been occasionally hanging. It looks like a bug in the test: if establishCursors gets responses from both shards before it sees that its opCtx is killed, it's allowed to return successfully instead of throwing and cleaning up.

      I think we need a second failpoint, to ensure the test marks the opCtx as killed before establishCursors does its check.

              Assignee:
              David Percy (Inactive)
              Reporter:
              David Percy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: