[SERVER-35057] Notify oplog waiter after advancing the lastApplied timestamp Created: 17/May/18  Updated: 29/Oct/23  Resolved: 05/Jun/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.0.0-rc2, 4.1.1

Type: Bug Priority: Major - P3
Reporter: Xiangyu Yao (Inactive) Assignee: Xiangyu Yao (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-65657 Reduce calls to the cappedInsertNotif... Closed
is related to SERVER-32883 Enhanced FSM testing for reading from... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0
Sprint: Storage NYC 2018-06-04, Storage NYC 2018-06-18
Participants:

 Description   

We create a new test suite called concurrency_replication_causal_consistency inĀ SERVER-32883, which runs all the fsm workloads with causal consistency on a 5-node linear chained replica set.
Tests such as auth_create_role.js timed out due to very slow dropRole operations which are done with majority write concerns. We later figured out the slowness was caused by not notifying the oplog waiter immediately after advancing the lastApplied timestamp. So another secondary which syncs from the secondary would wait long time(~20s) for the notification that lastApplied has been advanced.



 Comments   
Comment by Githook User [ 05/Jun/18 ]

Author:

{'username': 'xy24', 'name': 'Xiangyu Yao', 'email': 'xiangyu.yao@mongodb.com'}

Message: SERVER-35057 Notify oplog waiters after advancing the lastApplied timestamp

(cherry picked from commit c257b9a2e8b53fd58a8a4a9d79972a80f9d1e00f)
Branch: v4.0
https://github.com/mongodb/mongo/commit/419c9774c2a85721a7093d1e7c6ceb1f5397ad54

Comment by Githook User [ 05/Jun/18 ]

Author:

{'username': 'xy24', 'name': 'Xiangyu Yao', 'email': 'xiangyu.yao@mongodb.com'}

Message: SERVER-35057 Notify oplog waiters after advancing the lastApplied timestamp
Branch: master
https://github.com/mongodb/mongo/commit/c257b9a2e8b53fd58a8a4a9d79972a80f9d1e00f

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