[SERVER-26190] Waiting for opTime or majority read concern is not interruptible Created: 20/Sep/16  Updated: 19/Nov/16  Resolved: 20/Sep/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 3.3.12
Fix Version/s: 3.3.14

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-26345 Make threads waiting for writeConcern... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2016-10-10
Participants:
Linked BF Score: 0

 Description   

The code in ReplicationCoordinatorImpl::waitUntilOpTimeForRead which waits for majority read or an opTime does not use the interruptible way to wait on a condition variable and because of this internal operations might get stuck.



 Comments   
Comment by Githook User [ 20/Sep/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-26190 Use waitForConditionOrInterruptNoAssert instead of directly passing a deadline
Branch: master
https://github.com/mongodb/mongo/commit/5caef723f0f0dc52636d10e05a0ae8da8985e94b

Comment by Githook User [ 20/Sep/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-26190 Fix hanging replication_coordinator_impl_test
Branch: master
https://github.com/mongodb/mongo/commit/e47083a6894f8096450835c664541105370b975d

Comment by Githook User [ 20/Sep/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-26190 Make waitUntilOpTimeForRead interruptible
Branch: master
https://github.com/mongodb/mongo/commit/ad9f3df970b0b7d2465268e1d34d5198d7296298

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