[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: |
|
||||||||||||
| 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: |
| Comment by Githook User [ 07/Aug/17 ] |
|
Author: {'username': 'kaloianm', 'email': 'kaloian.manassiev@mongodb.com', 'name': 'Kaloian Manassiev'}Message: |
| Comment by Githook User [ 26/Jul/17 ] |
|
Author: {'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm', 'name': 'Kaloian Manassiev'}Message:
|
| 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 " This reverts commit 0f5a95b31d59a15d66be97ed1ac2a8cd89b1b6cb. |
| 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:
|