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

Deploying a v3.2 cluster with v3.4 config server fails with ShardingTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • 3.3.10
    • None
    • Sharding
    • None
    • ALL

    Description

      Setup: v3.2 shards, v3.2 mongos, v3.4 config servers

      assert.soon failed, msg:Waited too long for lock balancer to unlock
      doassert@src/mongo/shell/assert.js:15:14
      assert.soon@src/mongo/shell/assert.js:176:13
      sh._waitForDLock@src/mongo/shell/utils_sh.js:251:1
      sh.waitForBalancer@src/mongo/shell/utils_sh.js:318:13
      sh.stopBalancer@src/mongo/shell/utils_sh.js:175:9
      _extendWithShMethods/</self[fn]@src/mongo/shell/shardingtest.js:194:28
      _configureCluster@src/mongo/shell/shardingtest.js:208:13
      ShardingTest@src/mongo/shell/shardingtest.js:1310:9
      @/mnt/hdd/mongo-copy/jstests/multiVersion/new_mongos_old_mongod.js:5:18
      @/mnt/hdd/mongo-copy/jstests/multiVersion/new_mongos_old_mongod.js:1:2
      

      This is because the stopBalancer code assumes that if balancerStop command is not found, then it should use the old logic that involves waiting for balancer lock to be freed ( https://github.com/mongodb/mongo/blob/2464cdaf2a2c523ea1c116da60c27ad12e580a09/src/mongo/shell/utils_sh.js#L172). And this will never happen since v3.4 config servers will never release them

      Attachments

        Issue Links

          Activity

            People

              randolph@mongodb.com Randolph Tan
              randolph@mongodb.com Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: