[SERVER-77426] Install replset change listener after shard registry is initialized Created: 24/May/23  Updated: 29/Oct/23  Resolved: 01/Jun/23

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

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 145

 Description   

We register the listener here but initializes the shard registry in the Grid here. This allows for a tiny window of race where the callback which try to access shard registry can be called before the shard registry is initialized



 Comments   
Comment by Githook User [ 31/May/23 ]

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-77426 Install replset change listener after shard registry is initialized
Branch: master
https://github.com/mongodb/mongo/commit/d18d730001a818ce2bc0d8b6d0cfdd1074aa34b1

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