[SERVER-68709] Write more comprehensive test cases for hedged reads with mock implementation Created: 10/Aug/22  Updated: 29/Oct/23  Resolved: 01/Nov/22

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

Type: Task Priority: Major - P3
Reporter: Erin McNulty Assignee: Alex Li
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-67613 Implement mock for runRemoteCommand Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
SERVER-69980 Write comprehensive test cases using ... Sub-task Closed Reo Kimura  
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   

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.


 Comments   
Comment by Connie Chen [ 28/Oct/22 ]

reopening this ticket until subtask SERVER-69980 is closed

Comment by Githook User [ 17/Oct/22 ]

Author:

{'name': 'Alex Li', 'email': 'alex.li@mongodb.com', 'username': 'lia394126'}

Message: SERVER-68709 Added comprehensive test cases for hedged reads with mock implementation
Branch: master
https://github.com/mongodb/mongo/commit/52aa5621afacd680b654cb0ede2a6d6e2771d5e7

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