Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-56390

Failed to construct ShardingDDLCoordinators do not get released

    • Fully Compatible
    • ALL
    • Hide

      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
      Show
      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
    • Sharding EMEA 2021-05-03

      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.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: