[SERVER-21930] Restart oplog query if oplog entries are not monotonically increasing Created: 17/Dec/15  Updated: 04/Apr/17  Resolved: 17/Dec/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 3.2.0
Fix Version/s: 3.2.1, 3.3.0

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: code-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-21867 WiredTiger oplog cursor can return re... Closed
is related to SERVER-21962 Add testing hook for detecting anomal... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Participants:

 Description   

If the upstream server incorrectly returns documents from an oplog tailing query which are not in the correct order, monotonically increase by the "ts" field (time basically), then the client (replica) should treat that as a query error and issue a new query.

Getting idempotent oplog entries out of order is incorrect behavior from the sync source (upstream server).



 Comments   
Comment by Githook User [ 17/Dec/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-21930 - Restart oplog query if oplog entries are out of order

(cherry picked from commit 06ff25a41c6ac560c5b9d2fc6a32c13b1346c48d)
(cherry picked from commit ac919e016150819dde59f21c2e6327e5f24754bd)
Branch: v3.2
https://github.com/mongodb/mongo/commit/6331c474bae740e4b54c9741925013b5cbdbc5f9

Comment by Githook User [ 17/Dec/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-21930 - Restart oplog query if oplog entries are out of order

(cherry picked from commit 06ff25a41c6ac560c5b9d2fc6a32c13b1346c48d)
Branch: master
https://github.com/mongodb/mongo/commit/ac919e016150819dde59f21c2e6327e5f24754bd

Comment by Githook User [ 17/Dec/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: Revert "SERVER-21930 - Restart oplog query if oplog entries are out of order"

This reverts commit 06ff25a41c6ac560c5b9d2fc6a32c13b1346c48d.
Branch: master
https://github.com/mongodb/mongo/commit/9ef32d72f37319fabf49296671b6fd1c23ecb46c

Comment by Githook User [ 17/Dec/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: Revert "SERVER-21930 - Restart oplog query if oplog entries are out of order"

This reverts commit 06ff25a41c6ac560c5b9d2fc6a32c13b1346c48d.

(cherry picked from commit 9ef32d72f37319fabf49296671b6fd1c23ecb46c)
Branch: v3.2
https://github.com/mongodb/mongo/commit/db3259d651227d00a658dff26e2f05167f1a5aea

Comment by Githook User [ 17/Dec/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-21930 - Restart oplog query if oplog entries are out of order
Branch: master
https://github.com/mongodb/mongo/commit/06ff25a41c6ac560c5b9d2fc6a32c13b1346c48d

Comment by Githook User [ 17/Dec/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-21930 - Restart oplog query if oplog entries are out of order

(cherry picked from commit 06ff25a41c6ac560c5b9d2fc6a32c13b1346c48d)
Branch: v3.2
https://github.com/mongodb/mongo/commit/466dae32f1ad27bc867e13b5c763a9f48d88981b

Generated at Thu Feb 08 03:58:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.