[SERVER-56644] local.system.resharding.slimOplogForGraphLookup isn't created when replica set has already been initiated Created: 05/May/21  Updated: 29/Oct/23  Resolved: 10/May/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.9.0-rc1, 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: PM-234-M3, PM-234-T-oplog-fetch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
causes SERVER-62951 Deadlock on restarting the node with ... Open
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.9
Sprint: Sharding 2021-05-17
Participants:
Linked BF Score: 12
Story Points: 1

 Description   

The following views are not created when the replica set has already been initiated. repl::createOplog() is called (1) as part of the replSetInitiate command and (2) as part of initial sync. This means the views won't be created when upgrading from an existing replica set.

createSlimOplogView(opCtx, ctx.db());
tenant_migration_util::createOplogViewForTenantMigrations(opCtx, ctx.db());

These lines should be relocated so they are done as part of startup (at minimum after the storage engine has been initialized).



 Comments   
Comment by Githook User [ 10/May/21 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-56644 Remove unused imports

(cherry picked from commit f92afd9e21ed21e0297329a7a9958142573be6ab)
Branch: v4.9
https://github.com/mongodb/mongo/commit/d11ae40cab4075d4fd1b9c6fe8c50448394e033c

Comment by Githook User [ 10/May/21 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-56644 Create oplog views for resharding and tenant migration on startup

(cherry picked from commit c6e8fed25eaa9ca8fa43517ad8dca9d74308274f)
Branch: v4.9
https://github.com/mongodb/mongo/commit/a36393d1a931dfc799056bd5e5586a03c38a5f16

Comment by Githook User [ 10/May/21 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-56644 Remove unused imports
Branch: master
https://github.com/mongodb/mongo/commit/f92afd9e21ed21e0297329a7a9958142573be6ab

Comment by Githook User [ 10/May/21 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-56644 Create oplog views for resharding and tenant migration on startup
Branch: master
https://github.com/mongodb/mongo/commit/c6e8fed25eaa9ca8fa43517ad8dca9d74308274f

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