Random migration suites do not respect defined sharding zones

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 6.0.0, 7.0.0, 8.1.0-rc0, 8.0.0, 8.2.0-rc0
    • Component/s: None
    • Cluster Scalability
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Some test suites, like sharding_jscore_passthrough_with_balancer, enable random chunk migrations, which behind the scenes enables a fail point that triggers migrations without the usual requirements, such as large enough chunks.

       

      However, when this fail point is enabled, the balancer appears to disregard the sharding zones defined for collection.

       

      For example, the test case attached to this ticket creates two zones, each linked to a shard, and waits for the chunks to be placed according to the zones. This will quickly converge on the sharding_jscore_passthrough suite (balancer enabled, no random migrations) but it will often diverge on the sharding_jscore_passthrough_with_balancer (balancer enabled + random migrations) suite with the test ultimately timing out.

       

      To provide better coverage with zones on passthrough suites, the random migrations should respect the defined zones, i.e. prioritize splits on the zone boundaries and not migrate across zones.

              Assignee:
              Unassigned
              Reporter:
              Joan Bruguera Micó
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: