[SERVER-45885] Extend ReplicationCoordinator::canAcceptWritesFor(ns) to accept collection UUIDs Created: 30/Jan/20  Updated: 29/Oct/23  Resolved: 15/Feb/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.3.4

Type: Task Priority: Minor - P4
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-42527 Create CollectionLock constructor tha... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-02-10, Execution Team 2020-02-24
Participants:

 Description   

In keeping with the general trend towards using UUIDs over NamespaceStrings to identify collections, it would be convenient for the ReplicationCoordinator::canAcceptWritesFor() to accept collection UUIDs. This will eliminate some existing CollectionCatalog lookups and reduce some code clutter for the caller.



 Comments   
Comment by Githook User [ 15/Feb/20 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-45885 remove redundant NamespaceStringOrUUID parameter from IndexBuildsCoordinator internal functions

This information can be derived from ReplIndexBuildState.
Branch: master
https://github.com/mongodb/mongo/commit/ee466720d56ceb1e32abe2636b26cb0d2facd8d9

Comment by Githook User [ 15/Feb/20 ]

Author:

{'username': 'benety', 'name': 'Benety Goh', 'email': 'benety@mongodb.com'}

Message: SERVER-45885 IndexBuildsCoordinator::_waitForCommitOrAbort() checks secondary state using collection UUID
Branch: master
https://github.com/mongodb/mongo/commit/3c4dc6da82c595834719ac00f6fdfa22deffcb83

Comment by Githook User [ 14/Feb/20 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-45885 IndexBuildsCoordinator::shouldWaitForCommitOrAbort() checks secondary state using collection UUID
Branch: master
https://github.com/mongodb/mongo/commit/53c9e11517caa166183f259e0f29f87d37243c6e

Comment by Githook User [ 14/Feb/20 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-45885 add UUID support to ReplicationCoordinatorImpl::canAcceptWritesFor()
Branch: master
https://github.com/mongodb/mongo/commit/379f283cf4e16d84c8d58f702b7b590b50e5a383

Comment by Githook User [ 14/Feb/20 ]

Author:

{'username': 'benety', 'name': 'Benety Goh', 'email': 'benety@mongodb.com'}

Message: SERVER-45885 ReplicationCoordinator::canAcceptWritesFor() accepts NamespaceStringOrUUID

Interface change only - invariants if UUID is provided.
Branch: master
https://github.com/mongodb/mongo/commit/7900aecab9210ef5a0e690239aad569bc6dfac5f

Comment by Githook User [ 14/Feb/20 ]

Author:

{'username': 'benety', 'name': 'Benety Goh', 'email': 'benety@mongodb.com'}

Message: SERVER-45885 add NamespaceStringOrUUID::db()
Branch: master
https://github.com/mongodb/mongo/commit/dbfea5829b54ca279b2166213eced539e6d30619

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