[SERVER-73163] shard_split_shutdown_while_blocking_reads should handle exception in readThread Created: 20/Jan/23  Updated: 29/Oct/23  Resolved: 27/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 6.3.1

Type: Bug Priority: Major - P3
Reporter: Mathis Bessa Assignee: Mathis Bessa
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.3
Sprint: Server Serverless 2023-01-23, Server Serverless 2023-02-06, Server Serverless 2023-02-20, Server Serverless 2023-03-06
Participants:
Linked BF Score: 20

 Description   

The current shard_split_shutdown_while_blocking_reads.js test doesn't handle properly when the readThread expects to fail due to the primary shutting down.

We should handle the error within the thread in order to properly fix this behavior in our ASAN builds.

We should add handling the `HostUnreachable` error code since in ASAN builds we might not get `InterruptedAtShutdown` on time and instead get `HostUnreachable`.

 



 Comments   
Comment by Githook User [ 11/Apr/23 ]

Author:

{'name': 'mathisbessamdb', 'email': 'mathis.bessa@mongodb.com', 'username': 'mathisbessamdb'}

Message: SERVER-73163 shard_split_shutdown_while_blocking_reads to handle exception

(cherry picked from commit b9907665d7edbaab8a4c5e904bfa0cd9f55496bd)
Branch: v6.3
https://github.com/mongodb/mongo/commit/92dc7b6fa8aba3d96d2c83c05b2c0aaf5c3a9b48

Comment by Githook User [ 27/Feb/23 ]

Author:

{'name': 'mathisbessamdb', 'email': 'mathis.bessa@mongodb.com', 'username': 'mathisbessamdb'}

Message: SERVER-73163 shard_split_shutdown_while_blocking_reads to handle exception
Branch: master
https://github.com/mongodb/mongo/commit/b9907665d7edbaab8a4c5e904bfa0cd9f55496bd

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