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

Issuing moveChunk/mergeChunk/splitChunk, setShardVersion, _recvChunkStart on mongod can cause server hang

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-rc0
    • Fix Version/s: 3.2.0-rc3
    • Component/s: Sharding
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding B (10/30/15)
    • Linked BF Score:
      0

      Description

      On a single instance mongod, each of the 5 commands checks for the existence of the "config" or "configdb" field in the command object. If it exists and is a string, then shardingState is set to initializing in ShardingState::initialize. However the initialization never succeeds and the InitializationState is left in "initializing". Which causes calls to while loops waiting on initializationState to never exit:

      while (_getInitializationState() == InitializationState::kInitializing) {
                  _initializationFinishedCondition.wait(lk);
      }
      

      This affects subsequent calls to move/merge/splitChunk, setShardVersion, _recvChunkStart and shutdown

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: