[SERVER-30147] Add collection task queue flush functionality to ShardServerCatalogCacheLoader and replace certain uses of waitForCollectionVersion Created: 14/Jul/17  Updated: 30/Oct/23  Resolved: 10/Aug/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.5.12

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Gantt Dependency
has to be done before SERVER-30148 Move force primary refresh functional... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-07-31, Sharding 2017-08-21
Participants:
Linked BF Score: 0

 Description   

Secondaries currently ping the primary to acquire the latest collection version, and then wait for that version to be seen on the op observer. Rather than doing this, we want functionality to get an optime from the primary and then have the secondary wait on that optime before continuing. In order to acquire the optime from the primary that includes the metadata persistence, we must ensure persistence has occurred before leaving: we must flush the ShardServerCatalogCacheLoader's task queue for that collection and then get the latest optime.

The flush design will probably take the form of attaching a Notification to the end of a ShardServerCatalogCacheLoader collection task list, and then signaling that Notification if present when the task is complete.



 Comments   
Comment by Githook User [ 10/Aug/17 ]

Author:

{'username': 'kaloianm', 'email': 'kaloian.manassiev@mongodb.com', 'name': 'Kaloian Manassiev'}

Message: SERVER-30147 Add ability to wait on collection metadata flush
Branch: master
https://github.com/mongodb/mongo/commit/7ce57a44876cfedcedaf2dd9896817a2b021df66

Comment by Githook User [ 07/Aug/17 ]

Author:

{'username': 'kaloianm', 'email': 'kaloian.manassiev@mongodb.com', 'name': 'Kaloian Manassiev'}

Message: SERVER-30147 Move Command::appendOperationTime to LogicalTime
Branch: master
https://github.com/mongodb/mongo/commit/3aa21a3194e32eadd1158432f2ed39d4bc931e3f

Comment by Githook User [ 26/Jul/17 ]

Author:

{'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm', 'name': 'Kaloian Manassiev'}

Message: SERVER-30147 Remove some unused calls around ShardServerCatalogCacheLoader

Comment by Githook User [ 24/Jul/17 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: Revert "SERVER-30147 Remove some unused calls around ShardServerCatalogCacheLoader"

This reverts commit 0f5a95b31d59a15d66be97ed1ac2a8cd89b1b6cb.
Branch: master
https://github.com/mongodb/mongo/commit/13915db6589720b7c8cabd9663f023b2db49c401

Comment by Githook User [ 24/Jul/17 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-30147 Remove some unused calls around ShardServerCatalogCacheLoader

Generated at Thu Feb 08 04:22:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.