[SERVER-49890] Create local.system.resharding.slimOplogForGraphLookup view on donor shards Created: 25/Jul/20  Updated: 29/Oct/23  Resolved: 27/Aug/20

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

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: PM-234-M2, PM-234-T-oplog-fetch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-50534 --repair fails when views exist Closed
Related
related to SERVER-50518 Improve slim_oplog_test.js to assert ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-09-07
Participants:

 Description   

Original description:
This view should be created before the donor shard has chosen its fetchTimestamp.

This local.system.resharding.slimOplogForGraphLookup view is created on startup of any 4.6 binary code that ensures the oplog exists (presumably, any launch using --replSets). The view is never deleted and considered harmless on earlier versions. Moreover the view won't initial sync due to being in local.
It's definition:

{
    _id: "local.system.resharding.slimOplogForGraphLookup",
    viewOn: "oplog.rs",
    pipeline: [
        {$project: {
            op: 1,
            o: {applyOps: {ui: 1, reshardDest: 1}},
            ts: 1,
            // The next expression masks out the prevOpTime for any retryable write. This only preserves 
            // prevOpTime backpointers for multi-document transactions.
            "prevOpTime.ts": {$cond: {
                if: {$eq: [{$type: "$stmtId"}, "missing"]},
                then: "$prevOpTime.ts",
                else: Timestamp(0, 0),
            }}},
        }},
    ],
}



 Comments   
Comment by Githook User [ 27/Aug/20 ]

Author:

{'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com', 'username': 'dgottlieb'}

Message: SERVER-49890: Create resharding oplog view on startup.
Branch: master
https://github.com/mongodb/mongo/commit/9ced0d1888b2ab1e738b87b01a5454686e97811e

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