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

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

    • Fully Compatible
    • ALL
    • Sharding B (10/30/15)
    • 0

      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

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: