`autoSplitVector` must not return invalid split points

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Cluster Scalability
    • Minor Change
    • Cluster Scalability 2024-12-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Before committing a migration this check is ensuring that the bounds are valid shard keys.

      Given that moveRange is choosing a bound relying on the output of autoSplitVector, we should make sure that it never returns invalid split points. This will help to:

      • Avoid wasting time cloning before failing the commit
      • Avoid repeatedly selecting invalid split points

      This ticket is an optimization that will not be needed in case SERVER-12536 gets done.

            Assignee:
            David Chen
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: