[SERVER-24316] Extend lock manager unit-testing around lock mode conversion Created: 31/May/16  Updated: 21/Nov/16  Resolved: 31/May/16

Status: Closed
Project: Core Server
Component/s: Concurrency
Affects Version/s: None
Fix Version/s: 3.2.8, 3.3.8

Type: Improvement Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: code-and-test
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Sharding 15 (06/03/16)
Participants:

 Description   

Lock manager's unit tests around cancelling a pending conversion request only exercise the 'strong modes' code path and do not test the 'weak modes' IS/IX, which have special logic in order to reduce contention.

The unit-tests should be extended.



 Comments   
Comment by Githook User [ 15/Jun/16 ]

Author:

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

Message: SERVER-24316 Add lock conversion cancellation unit-test

This change adds a unit-test to ensure that upgrade from 'weak mode' to
'strong mode' preserves the grant counts correctly. It also tightens the
assertions around lock mode conversion.
Branch: v3.2
https://github.com/mongodb/mongo/commit/a481e3a9987a8dc7059402c66dd22bfe51d1a818

Comment by Ramon Fernandez Marina [ 15/Jun/16 ]

Backport to v3.2 approved kaloian.manassiev, cherry-pick away!

Comment by Githook User [ 31/May/16 ]

Author:

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

Message: SERVER-24316 Add lock conversion cancellation unit-test

This change adds a unit-test to ensure that upgrade from 'weak mode' to
'strong mode' preserves the grant counts correctly. It also tightens the
assertions around lock mode conversion.
Branch: master
https://github.com/mongodb/mongo/commit/a3fcc35946daec2500ae2325f8f21ca411e5b6d0

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