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

Add an assert to Array.shuffle

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.3.1
    • Component/s: JavaScript, Shell
    • None
    • Fully Compatible
    • TIG 10 (02/19/16), TIG 11 (03/11/16)
    • 0
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      Array.shuffle becomes an infinite loop if we do the following:

      Random.randint = NumberLong

      We should assert that we're not growing the array in Array.shuffle

            Assignee:
            robert.guo@mongodb.com Robert Guo (Inactive)
            Reporter:
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: