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

Fix race in establishCursors unittest

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

      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@mongodb.com David Percy
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: