[SERVER-57018] Killed node can hold distributed lock indefinetly Created: 18/May/21  Updated: 29/Oct/23  Resolved: 03/Jun/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.0-rc1, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-1, post-rc0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Steps To Reproduce:

The failure happened in the following evergreen patch:
https://spruce.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_80_64_bit_dynamic_required_burn_in:concurrency_sharded_kill_primary_with_balancer_0_enterprise_rhel_80_64_bit_dynamic_required_patch_3c84c163411ca70214ac7917d238b4c195717d5d_609ea41b0ae6061ab10bc0be_21_05_14_16_25_01/tests?execution=0

Sprint: Sharding EMEA 2021-05-31, Sharding EMEA 2021-06-14
Participants:
Linked BF Score: 146

 Description   

If a shard node that has acquired a distributed lock gets killed or crashed it will not release its distributed lock and all subsequent attempt to acquire the same distributed lock on the config server will fail forever.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 03/Jun/21 ]

Author:

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

Message: SERVER-57018 Make shards release their dist locks on step-up

(cherry picked from commit 9748e291b6a10e12b85c978d459fb6f6bf2d9ea3)
Branch: v5.0
https://github.com/mongodb/mongo/commit/ac763701045fa1a14bec165d15f2006ed87b14e8

Comment by Githook User [ 02/Jun/21 ]

Author:

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

Message: SERVER-57018 Make shards release their dist locks on step-up
Branch: master
https://github.com/mongodb/mongo/commit/9748e291b6a10e12b85c978d459fb6f6bf2d9ea3

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