• Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SamplingBasedSplitPolicy::make() sends the $sample random cursor aggregation to the shards as soon as the policy is built, before anyone knows whether split points will be needed. So it runs even when numInitialChunks == 1, or when zones already provide enough split points. If $sample fails in that case (for example with error 28799 "could not find a non-duplicate document" as in BF-46434), the whole reshardCollection fails for no reason.

            Assignee:
            Unassigned
            Reporter:
            Abdul Qadeer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: