[SERVER-52934] Tenant oplog applier may not notify the waiters in TenantOplogApplier::_opTimeNotificationList. Created: 18/Nov/20  Updated: 29/Oct/23  Resolved: 02/Dec/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Suganthi Mani Assignee: Suganthi Mani
Resolution: Fixed Votes: 0
Labels: pm-1791_milestone-B
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-51734 Enable tenant migration recipient tes... Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2020-11-30, Repl 2020-12-14
Participants:
Linked BF Score: 21

 Description   

Currently, we schedule some tenant oplog applier cleanupwork (like transitioning the async component state to kComplete & notifying donor opTime waiters etc.,) on oplog applier executor. Since Tenant oplog applier uses scoped task-executor which can get shutdown during node shutdown and stepdown, these cleanup work may not get scheduled. This results in tenant oplog applier miss notifying the waiters in TenantOplogApplier::_opTimeNotificationList and another side-effect is that memory leak as this join can't happen.



 Comments   
Comment by Githook User [ 02/Dec/20 ]

Author:

{'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}

Message: SERVER-52934 Tenant oplog batcher unit test failure fix.
Branch: master
https://github.com/mongodb/mongo/commit/40fac9fcc4495c12fa09c89f3b7545efbc17469e

Comment by Githook User [ 02/Dec/20 ]

Author:

{'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}

Message: SERVER-52934 Tenant oplog applier typo error fix and unit test failure fix.
Branch: master
https://github.com/mongodb/mongo/commit/2e916b7179a28923127a2933c58e109b5daf20a7

Comment by Githook User [ 02/Dec/20 ]

Author:

{'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}

Message: SERVER-52934 Tenant oplog applier may not notify the waiters in TenantOplogApplier::_opTimeNotificationList.
Branch: master
https://github.com/mongodb/mongo/commit/386b2d5f7ffc0818c204d2faf9942965889ae873

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