Write more comprehensive test cases for hedged reads with mock implementation (SERVER-68709)

[SERVER-69980] Write comprehensive test cases using mock for hedged reads where the hedged operation fails first Created: 26/Sep/22  Updated: 29/Oct/23  Resolved: 31/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Sub-task Priority: Major - P3
Reporter: George Wangensteen Assignee: Reo Kimura (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2022-10-03, Service Arch 2022-10-17, Service Arch 2022-10-31, Service Arch 2022-11-14
Participants:

 Description   

Cases to test in this sub-task: 

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


 Comments   
Comment by Githook User [ 28/Oct/22 ]

Author:

{'name': 'Reo Kimura', 'email': 'reo.kimura@mongodb.com', 'username': 'rkimura21'}

Message: SERVER-69980 Added comprehensive test cases using mock for hedged reads where the hedged operation fails first
Branch: master
https://github.com/mongodb/mongo/commit/4ad559568798f955e4e83ea700d376377596f228

Generated at Thu Feb 08 06:14:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.