[SERVER-74409] StreamableReplicaSetMonitor::getHostsOrRefresh Can Return Out of Date Information Created: 27/Feb/23  Updated: 29/Oct/23  Resolved: 27/Jun/23

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

Type: Bug Priority: Major - P3
Reporter: Brett Nawrocki Assignee: Kshitij Gupta
Resolution: Fixed Votes: 0
Labels: sharding-nyc-subteam1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-34608 Drivers may still see ismaster=true f... Closed
is related to SERVER-74415 SdamServerSelector Does Not Respect R... Closed
Assigned Teams:
Sharding NYC
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding NYC 2023-05-15, Sharding NYC 2023-05-29, Sharding NYC 2023-06-12, Sharding NYC 2023-06-26, Sharding NYC 2023-07-10
Participants:
Linked BF Score: 113

 Description   

After invalidating a host due to InterruptedDueToReplStateChange, getHostsOrRefresh() can return results from before that invalidation if a concurrent topology update was ongoing. See this comment for a detailed description.



 Comments   
Comment by Githook User [ 26/Jun/23 ]

Author:

{'name': 'Kshitij Gupta', 'email': 'kshitij.gupta@mongodb.com', 'username': 'kshitijng'}

Message: SERVER-74409: Reshard collection cmd should check its running on primary.
Branch: master
https://github.com/mongodb/mongo/commit/520f4366a9d64cf87c0ebdf4542930b60726ddc3

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