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

Calling createIndex() can cause the shell to stall

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Minor Change
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      From the shell run:

      db.foo.ensureIndex({a: 1}, {length: 1.7976931348623157e+308})
      

      Show
      From the shell run: db.foo.ensureIndex({a: 1}, {length: 1.7976931348623157e+308})
    • Epic Link:

      Description

      When createIndex is called in the shell it checks if the options provided are an array with if ( options.length ). If options is an object with a a field called length that is very large the shell will stall. This can be fixed by check if it's an array with if ( Array.isArray(options ). This can cause problems in jstestfuzz.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              j.delaney J Delaney
              Reporter:
              j.delaney J Delaney
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: