-
Type:
Task
-
Status: Closed
-
Priority:
Major - P3
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.3.3
-
Component/s: Replication
-
Labels:None
-
Backwards Compatibility:Fully Compatible
-
Sprint:Repl 2019-12-02, Repl 2019-12-16
ReplicationCoordinatorImpl::_waitUntilOpTime handles both majority RC waiters and regular optime waiters. But this while loop, this predicates for waiting on a condVar and optime waiters using future make the waiting logic overcomplicated and very hard to reason about. We should consider isolating those two and get rid of the while loop.