[SERVER-58148] mirrored_reads.js assertion does not consider mirrored read failure Created: 29/Jun/21  Updated: 29/Oct/23  Resolved: 06/Jul/21

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.4.10, 5.0.4, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Alex Li Assignee: Alex Li
Resolution: Fixed Votes: 0
Labels: save-for-alex, servicearch-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.4
Sprint: Service Arch 2021-07-12
Participants:
Linked BF Score: 21
Story Points: 2

 Description   

It is asserted in noPassthrough/mirror_reads.js that mirrored operations (i.e., readsSent) is equal to readsResolved, which may not always be true if the reads fail for whatever reason (i.e., secondary shuts down or fails set up). Possible solutions include adding logic in the test that considers failed reads, or changing the mirrored reads section to resolve before isRetriableError.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 20/Sep/21 ]

Author:

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

Message: SERVER-58148 Consider failed reads as resolved

(cherry picked from commit 8f3f7376532a70cfe422f276f4bc9b5233ec2966)
Branch: v5.0
https://github.com/mongodb/mongo/commit/90ab630c27300885b091174aee7820abb9a55622

Comment by Githook User [ 17/Sep/21 ]

Author:

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

Message: SERVER-58148 Consider failed reads as resolved

(cherry picked from commit 8f3f7376532a70cfe422f276f4bc9b5233ec2966)
Branch: v4.4
https://github.com/mongodb/mongo/commit/dfda44e8ba0fc39b5cb7016c999e95e796c7e2f4

Comment by Githook User [ 06/Jul/21 ]

Author:

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

Message: SERVER-58148 Consider failed reads as resolved
Branch: master
https://github.com/mongodb/mongo/commit/8f3f7376532a70cfe422f276f4bc9b5233ec2966

Generated at Thu Feb 08 05:43:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.