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

Randomize databases in Balancer MoveUnshardedPolicy

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 8.0.0-alpha2
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • v8.0
    • CAR Team 2024-05-13

      The MoveUnshardedPolicy is used only in our testing infrastructure and should perform random moveCollection over all the existing collections.

      In order to make the selection of the collection random, we need to:

      1. select a random database
      2. select a random collection in the database

      Currently, we only randomize the selection of the collection, but not the one of the databases.

      As part of this work we should also update jstests/sharding/balancer_should_return_random_migrations_failpoint.js test to make sure that in the presence of multiple databases the balancer will eventually move all collections.

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

              Created:
              Updated:
              Resolved: