[SERVER-25546] Handle slaveDelay as part of op batching on secondaries Created: 10/Aug/16  Updated: 20/Nov/16  Resolved: 23/Aug/16

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.2.11, 3.3.12

Type: Task Priority: Major - P3
Reporter: Crystal Horn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: code-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-21118 A slaveDelay'd member in sleep gets s... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Repl 2016-08-29
Participants:
Linked BF Score: 0

 Description   

Currently, slaveDelay is handled in a few places in sync_tail.cpp, and batches end after the first op that can't be applied yet. In addition to other issues, this means that ops that can be applied must wait for ops that can't. The plan for this ticket is to leave ops that can't be applied yet in BGSync's BlockingQueue and not adding them to a batch.



 Comments   
Comment by Githook User [ 17/Oct/16 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'redbeard0531@gmail.com'}

Message: SERVER-25546 move slaveDelay handling into tryPopAndWaitForMore

(manual backport of abcff3a9188bbd2f355a329a04789f41e936ba2d with the fix
from 6f96fbe7008283d458e7f72063e954c0fac2cc1c)
Branch: v3.2
https://github.com/mongodb/mongo/commit/51db91df77d948ce72cf72c7f07ccbfe3a11071f

Comment by Githook User [ 26/Aug/16 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-25546 Fix InitialSync::_applyOplogTo for behavior change of tryPopAndWaitForMore

It now returns true for empty batches to have the caller start a new batch.
Changed in abcff3a9188bbd2f355a329a04789f41e936ba2d.
Branch: master
https://github.com/mongodb/mongo/commit/6f96fbe7008283d458e7f72063e954c0fac2cc1c

Comment by Githook User [ 23/Aug/16 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-25546 move slaveDelay handling into tryPopAndWaitForMore
Branch: master
https://github.com/mongodb/mongo/commit/abcff3a9188bbd2f355a329a04789f41e936ba2d

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