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

Increase the cardinality of the new shard key

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 7.2.1, 7.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v7.2, v7.1, v7.0
    • 5

    Description

      The write_without_shard_key_with_resharding.js test fails because the sampling policy that creates the split points is unable to find 20 distinct shard key values. The custom shard key value (used for resharding) is determined randomly. Changing this to a monotonically increasing integer will ensure that each document has a unique shard key value for the split points.

      Attachments

        Activity

          People

            nandini.bhartiya@mongodb.com Nandini Bhartiya
            jada.lilleboe@mongodb.com Jada Lilleboe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: