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

parallel.js tries to move chunks to non-existent shards

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.4
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2018-03-26
    • 22

      jstests/sharding/parallel.js creates 11 chunks for 10000 documents then attempts to distribute them across 3 shards by moving each to a random shard. It does so by manipulating strings, which map to the old naming convention for standalone shards. As of SERVER-32052, shards are replica sets, so these names don't match any shards, and each moveChunk fails (silently because the response is ignored).

      This is probably related to the increasing number of NoProgessMade batch write failures in parallel.js, because the balancer is started before beginning a bulk insert and all 11 chunks are on one shard, leading to as many migrations as possible for this test setup.

      The test should be updated to pick a random shard correctly, possibly by creating a new helper in ShardingTest.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: