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

Write more comprehensive test cases for hedged reads with mock implementation

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Service Arch 2022-10-03, Service Arch 2022-10-17, Service Arch 2022-10-31, Service Arch 2022-11-14

      Depends on 

       

      There are a lot of different orderings of events, listed here. We decided that it would be best to test these with the mocking implementation. 

      Test cases to add under this ticket (additional ones covered under sub-task) :

      • The authoritative read fails first with an ignorable error, and the hedged read is cancelled. The counters show: succeeded: 1 and canceled: 1. The ignorable error is seen as the response.
      • The authoritative read fails with a fatal error, and the hedged read is cancelled. The counters show success: 1 and canceled: 1. The fatal error is shown as the response.
      • The authoritative read succeeds, and the hedged read is cancelled. The counters show success: 1 and failed: 0 and canceled: 1. The success is shown as the response.
      • The hedged read succeeds, and the authoritative request is canceled. The counters show success: 1 and canceled: 1. The success is shown as the response.

            Assignee:
            alex.li@mongodb.com Alex Li
            Reporter:
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: