[SERVER-56390] Failed to construct ShardingDDLCoordinators do not get released Created: 27/Apr/21  Updated: 29/Oct/23  Resolved: 03/May/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: Backlog
Fix Version/s: 5.0.0-rc0

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

Attachments: File DDL_construction_failure_repro.patch    
Issue Links:
Depends
is depended on by SERVER-54905 Implement FSMs hierarchy testing conc... Closed
is depended on by SERVER-56555 Enable drop_collection_sharded.js FSM... Closed
is depended on by SERVER-56557 Simplify create collection coordinato... Closed
Related
related to SERVER-69835 Add functionality for PrimaryOnlyServ... Backlog
related to SERVER-61717 Ensure a POS instance remains in the ... Open
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

Apply the provided patch and run:

buildscripts/resmoke.py run --mongodSetParameters="{logComponentVerbosity: {sharding: 3}, featureFlagShardingFullDDLSupport: true, featureFlagShardingFullDDLSupportTimestampedVersion: true}" --suite=sharding jstests/sharding/ddl_coordinator_construction.js

Sprint: Sharding EMEA 2021-05-03
Participants:

 Description   

If a ShardingDDLCoordinator throws an exception during its construction phase, before to actually persist its state document on disk, it will reach the onCompletion task and will try to delete its state document, since this document doesn't exists the PrimaryOnlyServiceOpObserver::onDelete() won't be triggered and the instance won't be released from the POS.



 Comments   
Comment by Githook User [ 03/May/21 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-56390 Failed to construct ShardingDDLCoordinators do not get released
Branch: master
https://github.com/mongodb/mongo/commit/6e3c93bd5b41a69edfaf55da395fd6672423ad7a

Comment by Tommaso Tocci [ 01/May/21 ]

CR: https://mongodbcr.appspot.com/786470004/

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