[SERVER-55189] Call awaitReplication() before returning from syncFrom() in rslib.js Created: 15/Mar/21  Updated: 29/Oct/23  Resolved: 16/Mar/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0, 4.0.24, 4.2.14, 4.4.6

Type: Bug Priority: Major - P3
Reporter: Ali Mir Assignee: Ali Mir
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2, v4.0
Sprint: Repl 2021-03-22
Participants:
Linked BF Score: 8

 Description   

We should add a call to awaitReplication() at the end of the syncFrom() function to ensure all the nodes are up to date. See linked BF for bug diagnosis that highlighted this issue.



 Comments   
Comment by Githook User [ 07/Apr/21 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-55189 Call awaitReplication() before returning from syncFrom() in rslib.js

(cherry picked from commit b4c795bf9ebac10a9f013a548c980768b0238cb0)
Branch: v4.4
https://github.com/mongodb/mongo/commit/d323b0b7502e80d7cb7018cfb801e2b83f5b420a

Comment by Githook User [ 02/Apr/21 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-55189 Call awaitReplication() before returning from syncFrom() in rslib.js

(cherry picked from commit b4c795bf9ebac10a9f013a548c980768b0238cb0)
Branch: v4.2
https://github.com/mongodb/mongo/commit/54e29d8dcca0b3d73898a384b57c516728edbcd2

Comment by Githook User [ 02/Apr/21 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-55189 Call awaitReplication() before returning from syncFrom() in rslib.js

(cherry picked from commit b4c795bf9ebac10a9f013a548c980768b0238cb0)
Branch: v4.0
https://github.com/mongodb/mongo/commit/a1f4be4af1f316499703a80c23cf57fc7cada969

Comment by Githook User [ 16/Mar/21 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-55189 Call awaitReplication() before returning from syncFrom() in rslib.js
Branch: master
https://github.com/mongodb/mongo/commit/b4c795bf9ebac10a9f013a548c980768b0238cb0

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